neovim html langserver
This commit is contained in:
parent
7afe1276f3
commit
1ba3421904
@ -34,6 +34,8 @@
|
|||||||
haskell-language-server
|
haskell-language-server
|
||||||
# neovim
|
# neovim
|
||||||
ripgrep
|
ripgrep
|
||||||
|
# html
|
||||||
|
nodePackages_latest.vscode-html-languageserver-bin
|
||||||
];
|
];
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
nvim-surround
|
nvim-surround
|
||||||
|
@ -62,6 +62,9 @@ local servers = {
|
|||||||
prismals = {},
|
prismals = {},
|
||||||
hls = {},
|
hls = {},
|
||||||
bashls = {},
|
bashls = {},
|
||||||
|
html = {
|
||||||
|
cmd = {"html-languageserver", "--stdio"}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
local cmp_capabilities = require("cmp_nvim_lsp").default_capabilities()
|
local cmp_capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||||
local on_attach = function(client, bufnr)
|
local on_attach = function(client, bufnr)
|
||||||
@ -101,6 +104,7 @@ cmp.setup({
|
|||||||
|
|
||||||
for server, cfg in pairs(servers) do
|
for server, cfg in pairs(servers) do
|
||||||
lspconfig[server].setup({
|
lspconfig[server].setup({
|
||||||
|
cmd = cfg.cmd,
|
||||||
settings = cfg.settings,
|
settings = cfg.settings,
|
||||||
capabilities = cmp_capabilities,
|
capabilities = cmp_capabilities,
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
Loading…
Reference in New Issue
Block a user