neovim html langserver

This commit is contained in:
Ivan Dimitrov 2023-09-20 03:43:29 +03:00
parent 7afe1276f3
commit 1ba3421904
2 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,8 @@
haskell-language-server
# neovim
ripgrep
# html
nodePackages_latest.vscode-html-languageserver-bin
];
plugins = with pkgs.vimPlugins; [
nvim-surround

View File

@ -62,6 +62,9 @@ local servers = {
prismals = {},
hls = {},
bashls = {},
html = {
cmd = {"html-languageserver", "--stdio"}
},
}
local cmp_capabilities = require("cmp_nvim_lsp").default_capabilities()
local on_attach = function(client, bufnr)
@ -101,6 +104,7 @@ cmp.setup({
for server, cfg in pairs(servers) do
lspconfig[server].setup({
cmd = cfg.cmd,
settings = cfg.settings,
capabilities = cmp_capabilities,
on_attach = on_attach,