deactivate phpactor

main
Mathias Rothenhaeusler 2025-01-07 10:40:45 +01:00
parent 0885e0e9b9
commit e00b8ca9a9
1 changed files with 18 additions and 14 deletions

View File

@ -69,15 +69,15 @@ local on_attach = function(_, bufnr)
keymap.set("n", "ge", "<cmd>Lspsaga show_line_diagnostics<CR>", opts) -- show diagnostics for line
keymap.set("n", "<a-cr>", "<cmd>Lspsaga code_action<CR>", opts)
-- diagnostic
keymap.set("n", "<leader>d", "<cmd>Telescope diagnostics<CR>", opts) -- jump to previous diagnostic in buffer
keymap.set("n", "<leader>d", "<cmd>Telescope diagnostics<CR>", opts) -- jump to previous diagnostic in buffer
-- keymap.set("n", "<leader>d", "<cmd>Lspsaga show_buf_diagnostics<CR>")
keymap.set("n", "<leader>dn", "<cmd>Lspsaga diagnostic_jump_next<CR>") -- jump to next diagnostic in buffer
keymap.set("n", "<leader>dp", "<cmd>Lspsaga diagnostic_jump_prev<CR>") -- jump to previous diagnostic in buffer
keymap.set("n", "<leader>dn", "<cmd>Lspsaga diagnostic_jump_next<CR>") -- jump to next diagnostic in buffer
keymap.set("n", "<leader>dp", "<cmd>Lspsaga diagnostic_jump_prev<CR>") -- jump to previous diagnostic in buffer
keymap.set("n", "gj", "<cmd>lua require'nvim-treesitter.textobjects.move'.goto_next_start('@function.outer')<CR>",
opts) -- jump to next method
opts) -- jump to next method
keymap.set("n", "gk", "<cmd>lua require'nvim-treesitter.textobjects.move'.goto_previous_start('@function.outer')<CR>",
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"