nvim: add psoxizsh.plugins.treesitter

This commit is contained in:
Paul Stemmet 2024-08-08 11:58:39 +00:00
parent ecb1bc2965
commit 388b6daa3a
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
2 changed files with 25 additions and 24 deletions

View File

@ -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

View File

@ -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)
},
}