neovim html langserver
This commit is contained in:
parent
7afe1276f3
commit
1ba3421904
@ -34,6 +34,8 @@
|
||||
haskell-language-server
|
||||
# neovim
|
||||
ripgrep
|
||||
# html
|
||||
nodePackages_latest.vscode-html-languageserver-bin
|
||||
];
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
nvim-surround
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user