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