1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 06:58:01 +00:00

[neovim] Update plugins

This commit is contained in:
Daniel Carrillo 2023-11-19 16:04:40 +01:00
parent a4cdf15790
commit e29afbd9aa
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
4 changed files with 16 additions and 12 deletions

View File

@ -119,7 +119,12 @@ keymap(
"<cmd>Lspsaga diagnostic_jump_prev<cr>",
vim.tbl_extend("force", opts, { desc = "Navigate to the previous diagnostic in the buffer" })
)
keymap("n", "<leader>lr", "<cmd>Lspsaga rename<cr>", vim.tbl_extend("force", opts, { desc = "Open a dialog to rename a code element" }))
keymap(
"n",
"<leader>lr",
"<cmd>Lspsaga rename<cr>",
vim.tbl_extend("force", opts, { desc = "Open a dialog to rename a code element" })
)
keymap(
"n",
"<leader>lp",
@ -195,11 +200,7 @@ keymap(
"x",
"<leader>/",
"<esc><cmd>lua require'Comment.api'.toggle.linewise(vim.fn.visualmode())<cr>",
vim.tbl_extend(
"force",
opts,
{ desc = "Comment/Uncomment code lines on visual block mode" }
)
vim.tbl_extend("force", opts, { desc = "Comment/Uncomment code lines on visual block mode" })
)
-- Gitdiff

View File

@ -1,4 +1,3 @@
-- Setup nvim-cmp.
require("nvim-autopairs").setup({
check_ts = true,
disable_filetype = { "TelescopePrompt", "neo-tree" },

View File

@ -1 +1,9 @@
require("Comment").setup({})
require("ts_context_commentstring").setup({
enable_autocmd = false,
})
require("Comment").setup({
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
})
vim.g.skip_ts_context_commentstring_module = true

View File

@ -22,8 +22,4 @@ require("nvim-treesitter.configs").setup({
enable = true,
disable = { "python", "css" },
},
context_commentstring = {
enable = true,
enable_autocmd = false,
},
})