Skip to content

Commit ceb43df

Browse files
committed
nvim-lua#1475 Fix for server settings not doing anything.
nvim-lua#1475
1 parent 2c5e9b5 commit ceb43df

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

init.lua

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,10 @@ require('lazy').setup({
696696
intelephense = {},
697697
html = {},
698698
emmet_language_server = {
699-
filetypes = { 'php' },
699+
filetypes = { 'css', 'eruby', 'html', 'javascript', 'javascriptreact', 'less', 'sass', 'scss', 'pug', 'typescriptreact', 'php' },
700+
init_options = {
701+
includeLanguages = { php = 'html' },
702+
},
700703
},
701704
cssls = {},
702705
docker_compose_language_service = {},
@@ -767,6 +770,15 @@ require('lazy').setup({
767770
end,
768771
},
769772
}
773+
-- NOTE: The below for loop was required to set options on emmet lang server. for some reason it does nothing without this
774+
-- fix is found in this issue; https://github.com/nvim-lua/kickstart.nvim/pull/1475/files
775+
-- Installed LSPs are configured and enabled automatically with mason-lspconfig
776+
-- The loop below is for overriding the default configuration of LSPs with the ones in the servers table
777+
for server_name, config in pairs(servers) do
778+
vim.lsp.config(server_name, config)
779+
end
780+
-- NOTE: Some servers may require an old setup until they are updated. For the full list refer here: https://github.com/neovim/nvim-lspconfig/issues/3705
781+
-- These servers will have to be manually set up with require("lspconfig").server_name.setup{}
770782
end,
771783
},
772784

0 commit comments

Comments
 (0)