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
# Treesitter
nvim-treesitter-textobjects
nvim-ts-autotag
(nvim-treesitter.withPlugins (
plugins:
with plugins; [

View file

@ -1,5 +1,7 @@
local req = MarleyVim.local_require('plugins.treesitter')
return {
req('nvim-treesitter-textobjects'),
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')
end,
after = function()
---@diagnostic disable-next-line: missing-fields
require('nvim-treesitter.configs').setup({
highlight = { 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,
}