Skip to content

Commit

Permalink
feat: update comment.nvim to latest config
Browse files Browse the repository at this point in the history
  • Loading branch information
mutewinter committed Jan 9, 2024
1 parent d917af6 commit 3d740a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
8 changes: 1 addition & 7 deletions plug_plugins/comment.vim
Expand Up @@ -6,12 +6,6 @@ endif
" Setup Comment.vim to use nvim-ts-context-commentstring
lua <<EOF
require('Comment').setup {
pre_hook = function(ctx)
local U = require 'Comment.utils'
local type = ctx.ctype == U.ctype.line and '__default' or '__multiline'
return require('ts_context_commentstring.internal').calculate_commentstring {
key = type,
}
end,
pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook(),
}
EOF
4 changes: 0 additions & 4 deletions plug_plugins/treesitter.vim
Expand Up @@ -18,9 +18,5 @@ require('nvim-treesitter.configs').setup {
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
context_commentstring = {
enable = true,
enable_autocmd = false
}
}
EOF

0 comments on commit 3d740a4

Please sign in to comment.