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
|
# Treesitter
|
||||||
nvim-treesitter-textobjects
|
nvim-treesitter-textobjects
|
||||||
|
nvim-ts-autotag
|
||||||
(nvim-treesitter.withPlugins (
|
(nvim-treesitter.withPlugins (
|
||||||
plugins:
|
plugins:
|
||||||
with plugins; [
|
with plugins; [
|
||||||
|
|
|
@ -3,4 +3,5 @@ local req = MarleyVim.local_require('plugins.treesitter')
|
||||||
return {
|
return {
|
||||||
req('nvim-treesitter-textobjects'),
|
req('nvim-treesitter-textobjects'),
|
||||||
req('nvim-treesitter'),
|
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