Compare commits
4 commits
5d501b2db4
...
d6f73008cb
Author | SHA1 | Date | |
---|---|---|---|
d6f73008cb | |||
f40dd25075 | |||
9ca26bcf6a | |||
e4d1f92cb2 |
5 changed files with 23 additions and 0 deletions
|
@ -57,6 +57,8 @@ with final.pkgs.lib; let
|
|||
gitsigns-nvim
|
||||
|
||||
# Treesitter
|
||||
nvim-treesitter-textobjects
|
||||
nvim-ts-autotag
|
||||
(nvim-treesitter.withPlugins (
|
||||
plugins:
|
||||
with plugins; [
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
local req = MarleyVim.local_require('plugins.treesitter')
|
||||
|
||||
return {
|
||||
req('nvim-treesitter-textobjects'),
|
||||
req('nvim-treesitter'),
|
||||
req('nvim-ts-autotag'),
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
'nvim-treesitter-textobjects',
|
||||
event = 'DeferredUIEnter',
|
||||
before = function()
|
||||
require('lz.n').trigger_load('nvim-treesitter')
|
||||
end,
|
||||
}
|
|
@ -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 },
|
||||
|
|
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