Refactor nvim packer configuration
This commit is contained in:
parent
9ef1115fa2
commit
8643dd3b6b
11 changed files with 31 additions and 24 deletions
14
home/.config/nvim/lua/plugins/treesitter.lua
Normal file
14
home/.config/nvim/lua/plugins/treesitter.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
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()'
|
Loading…
Add table
Add a link
Reference in a new issue