fix(neovim): fix comment setup
This commit is contained in:
parent
c4ada51f15
commit
2978197378
|
@ -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
|
||||||
|
|
|
@ -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 {}
|
||||||
|
|
|
@ -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,
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue