configure autotags for html
This commit is contained in:
parent
ed29f5529f
commit
665fd3e2db
5 changed files with 24 additions and 14 deletions
|
|
@ -34,6 +34,7 @@
|
||||||
"telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" },
|
"telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" },
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "3094ead8edfa9040de2421deddec55d3762f64d1" },
|
"todo-comments.nvim": { "branch": "main", "commit": "3094ead8edfa9040de2421deddec55d3762f64d1" },
|
||||||
"undotree": { "branch": "master", "commit": "0e11ba7325efbbb3f3bebe06213afa3e7ec75131" },
|
"undotree": { "branch": "master", "commit": "0e11ba7325efbbb3f3bebe06213afa3e7ec75131" },
|
||||||
|
"vim-closetag": { "branch": "master", "commit": "d0a562f8bdb107a50595aefe53b1a690460c3822" },
|
||||||
"vim-floaterm": { "branch": "master", "commit": "6e81602e9d7ff7dc1c96c66fedc38fca1262d57c" },
|
"vim-floaterm": { "branch": "master", "commit": "6e81602e9d7ff7dc1c96c66fedc38fca1262d57c" },
|
||||||
"vscode-js-debug": { "branch": "main", "commit": "16b9a70171b94cfe4aafc49e991f93b87b8ffb77" },
|
"vscode-js-debug": { "branch": "main", "commit": "16b9a70171b94cfe4aafc49e991f93b87b8ffb77" },
|
||||||
"which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" }
|
"which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" }
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,15 @@
|
||||||
return {
|
return {
|
||||||
"windwp/nvim-ts-autotag",
|
"windwp/nvim-ts-autotag",
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter", build = ':TSUpdate' },
|
dependencies = { "nvim-treesitter/nvim-treesitter", build = ':TSUpdate' },
|
||||||
ft = {
|
ft = {
|
||||||
"javascriptreact",
|
'javascriptreact',
|
||||||
"typescriptreact",
|
'typescriptreact',
|
||||||
"html"
|
},
|
||||||
},
|
config = function()
|
||||||
config = function()
|
local autotag = require('nvim-ts-autotag')
|
||||||
local autotag = require('nvim-ts-autotag')
|
autotag.setup({
|
||||||
autotag.setup({
|
enable = true,
|
||||||
enable = true,
|
enable_close_on_slash = false,
|
||||||
enable_close_on_slash = false,
|
})
|
||||||
})
|
end
|
||||||
end
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3
.config/nvim/lua/plugins/closetag.lua
Normal file
3
.config/nvim/lua/plugins/closetag.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
return {
|
||||||
|
"alvan/vim-closetag"
|
||||||
|
}
|
||||||
|
|
@ -73,6 +73,8 @@ return {
|
||||||
"typescript",
|
"typescript",
|
||||||
"javascriptreact",
|
"javascriptreact",
|
||||||
"typescriptreact",
|
"typescriptreact",
|
||||||
|
"html",
|
||||||
|
"css",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
@ -85,6 +87,7 @@ return {
|
||||||
lspconfig.zls.setup({})
|
lspconfig.zls.setup({})
|
||||||
lspconfig.rust_analyzer.setup({})
|
lspconfig.rust_analyzer.setup({})
|
||||||
lspconfig.gopls.setup({})
|
lspconfig.gopls.setup({})
|
||||||
|
lspconfig.html.setup({})
|
||||||
end
|
end
|
||||||
|
|
||||||
lspzero.setup()
|
lspzero.setup()
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,10 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
autotag = {
|
||||||
|
enable = true,
|
||||||
|
enable_close_on_slash = false,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue