From ef195cc6d916287f4601fd90a274fdf76277ae80 Mon Sep 17 00:00:00 2001 From: long Date: Thu, 26 Jun 2025 03:42:56 -0500 Subject: [PATCH] - added html configuration - removed old plugins --- lua/plugins/config.lua | 2 +- lua/plugins/lazy.lua | 15 +-------------- lua/plugins/lsp_setup.lua | 7 +++++++ 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/lua/plugins/config.lua b/lua/plugins/config.lua index 52325a4..235f8a5 100644 --- a/lua/plugins/config.lua +++ b/lua/plugins/config.lua @@ -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() diff --git a/lua/plugins/lazy.lua b/lua/plugins/lazy.lua index 07f0f4d..4d4489a 100644 --- a/lua/plugins/lazy.lua +++ b/lua/plugins/lazy.lua @@ -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", diff --git a/lua/plugins/lsp_setup.lua b/lua/plugins/lsp_setup.lua index dcee184..29c841e 100644 --- a/lua/plugins/lsp_setup.lua +++ b/lua/plugins/lsp_setup.lua @@ -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", })