- added html configuration
- removed old plugins
This commit is contained in:
@@ -396,7 +396,7 @@ end
|
||||
|
||||
function M.luasnip()
|
||||
local luasnip = require("luasnip")
|
||||
luasnip.filetype_extend("htmldjango", { "html" })
|
||||
--luasnip.filetype_extend("htmldjango", { "html" })
|
||||
luasnip.filetype_extend("templ", { "html" })
|
||||
luasnip.filetype_extend("handlebars", { "html" })
|
||||
require("luasnip.loaders.from_snipmate").lazy_load()
|
||||
|
||||
+1
-14
@@ -35,7 +35,6 @@ function M.install_plugins()
|
||||
"vijaymarupudi/nvim-fzf-commands",
|
||||
|
||||
-- SESSION
|
||||
--"ThePrimeagen/harpoon",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"rmagatti/auto-session",
|
||||
"mbbill/undotree",
|
||||
@@ -82,21 +81,9 @@ function M.install_plugins()
|
||||
},
|
||||
},
|
||||
|
||||
-- JS
|
||||
"HerringtonDarkholme/yats.vim",
|
||||
"chemzqm/vim-jsx-improve",
|
||||
"yuezk/vim-js", -- js
|
||||
"maxmellon/vim-jsx-pretty", -- react/tsx syntax highlight & indent
|
||||
|
||||
-- HTML/CSS
|
||||
-- HTML
|
||||
"mattn/emmet-vim",
|
||||
|
||||
-- ZIG
|
||||
"ziglang/zig.vim",
|
||||
|
||||
-- C#
|
||||
"jlcrochet/vim-razor",
|
||||
|
||||
-- RUST
|
||||
{
|
||||
"mrcjkb/rustaceanvim",
|
||||
|
||||
@@ -132,6 +132,8 @@ cmp.setup({
|
||||
|
||||
require("mason").setup()
|
||||
|
||||
local html_filetypes = { "html", "templ", "htmldjango" }
|
||||
|
||||
vim.lsp.config("ts_ls", {
|
||||
settings = {
|
||||
implicitProjectConfiguration = {
|
||||
@@ -141,6 +143,10 @@ vim.lsp.config("ts_ls", {
|
||||
},
|
||||
})
|
||||
|
||||
vim.lsp.config("html", {
|
||||
filetypes = html_filetypes,
|
||||
})
|
||||
|
||||
vim.lsp.enable({
|
||||
"angular-language-server",
|
||||
"bashls",
|
||||
@@ -157,4 +163,5 @@ vim.lsp.enable({
|
||||
"taplo",
|
||||
"templ",
|
||||
"ts_ls",
|
||||
"zls",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user