feat: nvim-ts-autotag
This commit is contained in:
parent
f40dd25075
commit
d6f73008cb
3 changed files with 13 additions and 0 deletions
|
@ -58,6 +58,7 @@ with final.pkgs.lib; let
|
|||
|
||||
# Treesitter
|
||||
nvim-treesitter-textobjects
|
||||
nvim-ts-autotag
|
||||
(nvim-treesitter.withPlugins (
|
||||
plugins:
|
||||
with plugins; [
|
||||
|
|
|
@ -3,4 +3,5 @@ local req = MarleyVim.local_require('plugins.treesitter')
|
|||
return {
|
||||
req('nvim-treesitter-textobjects'),
|
||||
req('nvim-treesitter'),
|
||||
req('nvim-ts-autotag'),
|
||||
}
|
||||
|
|
11
nvim/lua/plugins/treesitter/nvim-ts-autotag.lua
Normal file
11
nvim/lua/plugins/treesitter/nvim-ts-autotag.lua
Normal 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,
|
||||
}
|
Loading…
Reference in a new issue