diff --git a/nvim/after/plugin/lsp_test.lua b/nvim/after/plugin/lsp_test.lua index 221cd88..63eb9e3 100644 --- a/nvim/after/plugin/lsp_test.lua +++ b/nvim/after/plugin/lsp_test.lua @@ -1,11 +1,11 @@ local util = require("lspconfig.util") local configs = require("lspconfig.configs") -if not configs.symfony_lsp then - configs.symfony_lsp = { +if not configs.symfony_ls then + configs.symfony_ls = { default_config = { - cmd = { "symfony_lsp" }, - filetypes = { "php", "yml", "yaml" }, + cmd = { "symfony_ls" }, + filetypes = { "lua", "php", "yml", "yaml" }, root_dir = util.find_git_ancestor, }, } diff --git a/nvim/after/plugin/lspconfig.lua b/nvim/after/plugin/lspconfig.lua index c220253..ae5a07c 100644 --- a/nvim/after/plugin/lspconfig.lua +++ b/nvim/after/plugin/lspconfig.lua @@ -147,7 +147,7 @@ local function on_attach_with_format(client, bufnr) return on_attach(client, bufnr) end -lspconfig.symfony_lsp.setup({ +lspconfig.symfony_ls.setup({ on_attach = on_attach, })