1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 12:48: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>", "<cmd>Lspsaga diagnostic_jump_prev<cr>",
vim.tbl_extend("force", opts, { desc = "Navigate to the previous diagnostic in the buffer" }) 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( keymap(
"n", "n",
"<leader>lp", "<leader>lp",
@ -195,11 +200,7 @@ keymap(
"x", "x",
"<leader>/", "<leader>/",
"<esc><cmd>lua require'Comment.api'.toggle.linewise(vim.fn.visualmode())<cr>", "<esc><cmd>lua require'Comment.api'.toggle.linewise(vim.fn.visualmode())<cr>",
vim.tbl_extend( vim.tbl_extend("force", opts, { desc = "Comment/Uncomment code lines on visual block mode" })
"force",
opts,
{ desc = "Comment/Uncomment code lines on visual block mode" }
)
) )
-- Gitdiff -- Gitdiff

View File

@ -1,4 +1,3 @@
-- Setup nvim-cmp.
require("nvim-autopairs").setup({ require("nvim-autopairs").setup({
check_ts = true, check_ts = true,
disable_filetype = { "TelescopePrompt", "neo-tree" }, 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, enable = true,
disable = { "python", "css" }, disable = { "python", "css" },
}, },
context_commentstring = {
enable = true,
enable_autocmd = false,
},
}) })