mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-03-18 08:09:40 +00:00
Rewrite init.vim to init.lua
This commit is contained in:
17
.config/nvim/lua/user/treesitter.lua
Normal file
17
.config/nvim/lua/user/treesitter.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
local status_ok, configs = pcall(require, 'nvim-treesitter.configs')
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
configs.setup({
|
||||
ensure_installed = 'all', -- one of 'all' or a list of languages
|
||||
ignore_install = { '' }, -- List of parsers to ignore installing
|
||||
highlight = {
|
||||
enable = true, -- false will disable the whole extension
|
||||
disable = { }, -- list of language that will be disabled
|
||||
},
|
||||
autopairs = {
|
||||
enable = true,
|
||||
},
|
||||
indent = { enable = true, disable = { } },
|
||||
})
|
||||
Reference in New Issue
Block a user