nvim: add comment + treesitter aware commentstring

nixos
Moritz Böhme 2023-02-17 22:16:23 +01:00
parent 5942a1c94c
commit 10ebfad990
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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,
},
})