Compare commits

..

1 commit

Author SHA1 Message Date
743e5df1b4 Add eslint and html LSP's 2026-03-26 22:26:44 +03:00
3 changed files with 10 additions and 10 deletions

View file

@ -31,7 +31,8 @@ cmp.setup {
sources = { sources = {
{ name = "luasnip" }, { name = "luasnip" },
{ name = "nvim_lsp" }, { name = "nvim_lsp" },
{ name = "path" } { name = "path" },
{ name = "buffer" },
}, },
mapping = { mapping = {
["<C-n>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert }, ["<C-n>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert },

View file

@ -63,6 +63,12 @@ local servers = {
}, },
}, },
}, },
eslint = {
filetypes = { "html", "js", "ts" },
},
html = {
filetypes = { "html", "js", "ts" },
},
clangd = { clangd = {
filetypes = { "c", "cpp" }, filetypes = { "c", "cpp" },
cmd = { cmd = {
@ -70,15 +76,6 @@ local servers = {
"--offset-encoding=utf-16", "--offset-encoding=utf-16",
}, },
}, },
html = {
filetypes = { "html", "gohtml" },
},
eslint = {
filetypes = { "javascript", "typescript", "html", "gohtml" },
},
ts_ls = {
filetypes = { "javascript", "typescript" },
},
} }
local servers_to_install = vim.tbl_filter(function(key) local servers_to_install = vim.tbl_filter(function(key)

View file

@ -5,6 +5,8 @@ require 'nvim-treesitter.configs'.setup {
"vim", "vim",
"vimdoc", "vimdoc",
"query", "query",
"elixir",
"heex",
"javascript", "javascript",
"html", "html",
"go", "go",