fix(neovim): fix comment setup
This commit is contained in:
parent
c4ada51f15
commit
2978197378
|
@ -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
|
||||
|
|
|
@ -31,6 +31,8 @@ vim.g.closetag_regions = {
|
|||
["javascript.jsx"] = "jsxRegion",
|
||||
}
|
||||
|
||||
require("Comment").setup {}
|
||||
|
||||
local wk = require("which-key")
|
||||
|
||||
require("nvim-tree").setup {}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue