Refactor packer config to use packer config parameter instead of
separate requires
This commit is contained in:
parent
413a8fb1fb
commit
f4216ae0ba
14 changed files with 390 additions and 344 deletions
|
@ -1,14 +1,16 @@
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = {
|
||||
'bash', 'c', 'css', 'dockerfile', 'html', 'http', 'java', 'json',
|
||||
'json5', 'latex', 'lua', 'make', 'markdown', 'php', 'python', 'regex',
|
||||
'rst', 'scss', 'toml', 'tsx', 'typescript', 'javascript', 'yaml'
|
||||
},
|
||||
highlight = {enable = true},
|
||||
indent = {enable = true},
|
||||
incremental_selection = {enable = true},
|
||||
context_commentstring = {enable = true}
|
||||
}
|
||||
return function ()
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = {
|
||||
'bash', 'c', 'css', 'dockerfile', 'html', 'http', 'java', 'json',
|
||||
'json5', 'latex', 'lua', 'make', 'markdown', 'php', 'python', 'regex',
|
||||
'rst', 'scss', 'toml', 'tsx', 'typescript', 'javascript', 'yaml'
|
||||
},
|
||||
highlight = {enable = true},
|
||||
indent = {enable = true},
|
||||
incremental_selection = {enable = true},
|
||||
context_commentstring = {enable = true}
|
||||
}
|
||||
|
||||
--vim.wo.foldmethod = 'expr'
|
||||
--im.wo.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||
--vim.wo.foldmethod = 'expr'
|
||||
--im.wo.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue