config update
This commit is contained in:
33
lua/markaya/plugins/treesitter.lua
Normal file
33
lua/markaya/plugins/treesitter.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
return {
|
||||
{ -- Highlight, edit, and navigate code
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
build = ':TSUpdate',
|
||||
tag = 'v0.10.0',
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
'lua',
|
||||
'luadoc',
|
||||
'vim',
|
||||
'vimdoc',
|
||||
'bash',
|
||||
-- Go ecosystem
|
||||
'go',
|
||||
'gomod',
|
||||
'gowork',
|
||||
'gosum'
|
||||
},
|
||||
-- Autoinstall languages that are not installed
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = { 'ruby' },
|
||||
},
|
||||
indent = { enable = true, disable = { 'ruby' } },
|
||||
},
|
||||
config = function(_, opts)
|
||||
require('nvim-treesitter.install').prefer_git = true
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
require('nvim-treesitter.configs').setup(opts)
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user