Compare commits

..

4 commits

5 changed files with 23 additions and 0 deletions

View file

@ -57,6 +57,8 @@ with final.pkgs.lib; let
gitsigns-nvim gitsigns-nvim
# Treesitter # Treesitter
nvim-treesitter-textobjects
nvim-ts-autotag
(nvim-treesitter.withPlugins ( (nvim-treesitter.withPlugins (
plugins: plugins:
with plugins; [ with plugins; [

View file

@ -1,5 +1,7 @@
local req = MarleyVim.local_require('plugins.treesitter') local req = MarleyVim.local_require('plugins.treesitter')
return { return {
req('nvim-treesitter-textobjects'),
req('nvim-treesitter'), req('nvim-treesitter'),
req('nvim-ts-autotag'),
} }

View file

@ -0,0 +1,7 @@
return {
'nvim-treesitter-textobjects',
event = 'DeferredUIEnter',
before = function()
require('lz.n').trigger_load('nvim-treesitter')
end,
}

View file

@ -8,6 +8,7 @@ return {
require('lz.n').trigger_load('which-key.nvim') require('lz.n').trigger_load('which-key.nvim')
end, end,
after = function() after = function()
---@diagnostic disable-next-line: missing-fields
require('nvim-treesitter.configs').setup({ require('nvim-treesitter.configs').setup({
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = true }, indent = { enable = true },

View file

@ -0,0 +1,11 @@
return {
'nvim-ts-autotag',
event = { 'BufReadPost', 'BufWritePost', 'BufNewFile' },
after = function()
require('nvim-ts-autotag').setup({
opts = {
enable_close_on_slash = true,
},
})
end,
}