nvim: add psoxizsh.plugins.treesitter
This commit is contained in:
parent
ecb1bc2965
commit
388b6daa3a
|
@ -1,24 +0,0 @@
|
|||
return function()
|
||||
local ts, util = require 'nvim-treesitter.configs', require 'psoxizsh.util'
|
||||
|
||||
local defaults = {
|
||||
-- Trigger prompt to install plugin on loading relevant filetype
|
||||
auto_install = true,
|
||||
|
||||
-- Always install these
|
||||
ensure_installed = { 'vim', 'lua', 'json', 'yaml' },
|
||||
|
||||
-- Enable highlighting module
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
|
||||
-- Added via p00f/nvim-ts-rainbow
|
||||
rainbow = {
|
||||
enable = true,
|
||||
extended_mode = true,
|
||||
}
|
||||
}
|
||||
|
||||
ts.setup(util.mconfig('config.nvim-treesitter', defaults))
|
||||
end
|
|
@ -0,0 +1,25 @@
|
|||
-- For configuration of NeoVim Treesitter
|
||||
|
||||
return {
|
||||
{ 'nvim-treesitter/nvim-treesitter',
|
||||
dependencies = { 'p00f/nvim-ts-rainbow', 'andymass/vim-matchup' },
|
||||
opts = {
|
||||
-- Trigger prompt to install plugin on loading relevant filetype
|
||||
auto_install = true,
|
||||
|
||||
-- Added via p00f/nvim-ts-rainbow
|
||||
rainbow = {
|
||||
enable = true,
|
||||
extended_mode = true,
|
||||
},
|
||||
|
||||
-- Added via andymass/vim-matchup
|
||||
matchup = {
|
||||
enabled = true,
|
||||
include_match_words = true,
|
||||
disable_virtual_text = false,
|
||||
},
|
||||
},
|
||||
keys = function() end, -- disable LazyVim keymaps (they're stupid)
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue