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 let
vimLua = lua: '' vimLua = lua: ''
@ -28,7 +28,7 @@ in {
auto-session auto-session
vim-visual-multi vim-visual-multi
vim-surround vim-surround
kommentary comment-nvim
lightspeed-nvim lightspeed-nvim
which-key-nvim which-key-nvim
neogit neogit

View file

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

View file

@ -1,8 +1,8 @@
require'nvim-treesitter.configs'.setup { require("nvim-treesitter.configs").setup {
highlight = { highlight = {
enable = true, enable = true,
disable = {"org"}, disable = { "org" },
additional_vim_regex_highlighting = {"org"}, additional_vim_regex_highlighting = { "org" },
}, },
indent = { indent = {
enable = true, enable = true,
@ -10,9 +10,6 @@ require'nvim-treesitter.configs'.setup {
autotag = { autotag = {
enable = true, enable = true,
}, },
context_commentstring = {
enable = true,
},
refactor = { refactor = {
highlight_definitions = { enable = true }, highlight_definitions = { enable = true },
highlight_current_scope = { 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,
}