nvim: update ts_context_commentstring stuff
This commit is contained in:
parent
6c596114b0
commit
0e660f9eeb
@ -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({})
|
||||
|
@ -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' } })
|
||||
|
Loading…
x
Reference in New Issue
Block a user