nvim: add comment + treesitter aware commentstring
parent
5942a1c94c
commit
10ebfad990
|
@ -34,6 +34,7 @@ in
|
||||||
catppuccin-nvim
|
catppuccin-nvim
|
||||||
cmp-nvim-lsp
|
cmp-nvim-lsp
|
||||||
cmp_luasnip
|
cmp_luasnip
|
||||||
|
comment-nvim
|
||||||
dashboard-nvim
|
dashboard-nvim
|
||||||
lsp_lines-nvim
|
lsp_lines-nvim
|
||||||
lualine-lsp-progress
|
lualine-lsp-progress
|
||||||
|
@ -45,6 +46,7 @@ in
|
||||||
nvim-cmp
|
nvim-cmp
|
||||||
nvim-lspconfig
|
nvim-lspconfig
|
||||||
nvim-treesitter.withAllGrammars
|
nvim-treesitter.withAllGrammars
|
||||||
|
nvim-ts-context-commentstring
|
||||||
nvim-web-devicons # for dashboard-nvim
|
nvim-web-devicons # for dashboard-nvim
|
||||||
plenary-nvim # for telescope, neogit
|
plenary-nvim # for telescope, neogit
|
||||||
telescope-nvim
|
telescope-nvim
|
||||||
|
|
|
@ -312,3 +312,11 @@ require("lualine").setup({
|
||||||
inactive_winbar = {},
|
inactive_winbar = {},
|
||||||
extensions = {},
|
extensions = {},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require("Comment").setup()
|
||||||
|
|
||||||
|
require("nvim-treesitter.configs").setup({
|
||||||
|
context_commentstring = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue