fix(neovim): fix comment setup

This commit is contained in:
Felix Schröter 2023-11-30 11:24:55 +01:00
parent c4ada51f15
commit 2978197378
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 13 additions and 8 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
let
vimLua = lua: ''
@ -28,7 +28,7 @@ in {
auto-session
vim-visual-multi
vim-surround
kommentary
comment-nvim
lightspeed-nvim
which-key-nvim
neogit

View file

@ -31,6 +31,8 @@ vim.g.closetag_regions = {
["javascript.jsx"] = "jsxRegion",
}
require("Comment").setup {}
local wk = require("which-key")
require("nvim-tree").setup {}

View file

@ -1,4 +1,4 @@
require'nvim-treesitter.configs'.setup {
require("nvim-treesitter.configs").setup {
highlight = {
enable = true,
disable = { "org" },
@ -10,9 +10,6 @@ require'nvim-treesitter.configs'.setup {
autotag = {
enable = true,
},
context_commentstring = {
enable = true,
},
refactor = {
highlight_definitions = { enable = true },
highlight_current_scope = { enable = true },
@ -84,3 +81,9 @@ require'nvim-treesitter.configs'.setup {
},
},
}
vim.g.skip_ts_context_commentstring_module = true
require("ts_context_commentstring").setup {
enable_autocmd = false,
}