1
0
Fork 0

nvim: update ts_context_commentstring stuff

This commit is contained in:
tastytea 2023-12-30 20:55:39 +01:00
parent 6c596114b0
commit 0e660f9eeb
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 8 additions and 5 deletions

View File

@ -14,7 +14,8 @@ require('Comment').setup({
below = '<Leader>co',
eol = '<Leader>cA',
},
pre_hook = require('ts_context_commentstring.integrations.comment_nvim').create_pre_hook(),
pre_hook = require('ts_context_commentstring.integrations.comment_nvim')
.create_pre_hook(),
})
require("nvim-autopairs").setup({})

View File

@ -5,13 +5,15 @@ require 'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
additional_vim_regex_highlighting = { 'cpp', 'org' }
},
context_commentstring = {
enable = true,
enable_autocmd = false -- handled by Comment
}
}
require('ts_context_commentstring').setup({
enable = true,
enable_autocmd = false -- handled by Comment (?)
})
vim.g.skip_ts_context_commentstring_module = true; -- disable backwards compat
require('orgmode').setup {}
require('orgmode').setup_ts_grammar()
require('which-key').register({ ['<Leader>o'] = { name = 'Orgmode' } })