From e00b8ca9a9fc2db957732165112e00b8b1609a38 Mon Sep 17 00:00:00 2001 From: Mathias Rothenhaeusler Date: Tue, 7 Jan 2025 10:40:45 +0100 Subject: [PATCH] deactivate phpactor --- lua/custom/lspconfig.lua | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/lua/custom/lspconfig.lua b/lua/custom/lspconfig.lua index 4136133..ab63206 100644 --- a/lua/custom/lspconfig.lua +++ b/lua/custom/lspconfig.lua @@ -69,15 +69,15 @@ local on_attach = function(_, bufnr) keymap.set("n", "ge", "Lspsaga show_line_diagnostics", opts) -- show diagnostics for line keymap.set("n", "", "Lspsaga code_action", opts) -- diagnostic - keymap.set("n", "d", "Telescope diagnostics", opts) -- jump to previous diagnostic in buffer + keymap.set("n", "d", "Telescope diagnostics", opts) -- jump to previous diagnostic in buffer -- keymap.set("n", "d", "Lspsaga show_buf_diagnostics") - keymap.set("n", "dn", "Lspsaga diagnostic_jump_next") -- jump to next diagnostic in buffer - keymap.set("n", "dp", "Lspsaga diagnostic_jump_prev") -- jump to previous diagnostic in buffer + keymap.set("n", "dn", "Lspsaga diagnostic_jump_next") -- jump to next diagnostic in buffer + keymap.set("n", "dp", "Lspsaga diagnostic_jump_prev") -- jump to previous diagnostic in buffer keymap.set("n", "gj", "lua require'nvim-treesitter.textobjects.move'.goto_next_start('@function.outer')", - opts) -- jump to next method + opts) -- jump to next method keymap.set("n", "gk", "lua require'nvim-treesitter.textobjects.move'.goto_previous_start('@function.outer')", - opts) -- jump to previous method + opts) -- jump to previous method end -- used to enable autocompletion (assign to every lsp server config) @@ -206,15 +206,15 @@ lspconfig["lua_ls"].setup({ filetypes = { "lua" }, }) -lspconfig["phpactor"].setup({ - on_attach = on_attach, - capabilities = capabilities, - init_options = { - ["language_server_phpstan.enabled"] = true, - ["language_server_psalm.enabled"] = false, - }, - filetypes = { "php" }, -}) +-- lspconfig["phpactor"].setup({ +-- on_attach = on_attach, +-- capabilities = capabilities, +-- init_options = { +-- ["language_server_phpstan.enabled"] = true, +-- ["language_server_psalm.enabled"] = false, +-- }, +-- filetypes = { "php" }, +-- }) lspconfig["intelephense"].setup({ capabilities = capabilities, @@ -227,3 +227,7 @@ lspconfig["slint_lsp"].setup({ capabilities = capabilities, filetypes = { "slint" }, }) + +vim.g.nvim_phpcs_config_phpcs_path = 'phpcs' +vim.g.nvim_phpcs_config_phpcbf_path = 'phpcbf' +vim.g.nvim_phpcs_config_phpcs_standard = "/home/mace/repos/configs/phpcs.xml"