diff options
| -rw-r--r-- | after/queries/php/highlights.scm | 9 | ||||
| -rw-r--r-- | lua/alpha/lsp.lua | 5 |
2 files changed, 5 insertions, 9 deletions
diff --git a/after/queries/php/highlights.scm b/after/queries/php/highlights.scm index 735f0d2..cc25270 100644 --- a/after/queries/php/highlights.scm +++ b/after/queries/php/highlights.scm @@ -1,4 +1,5 @@ -(class_constant_access_expression ( - (name) - (name) @type.builtin -) ) +[ + "fn" + "function" + "enum" +] @keyword.function diff --git a/lua/alpha/lsp.lua b/lua/alpha/lsp.lua index c164846..f190655 100644 --- a/lua/alpha/lsp.lua +++ b/lua/alpha/lsp.lua @@ -10,17 +10,12 @@ local function on_attach() vim.api.nvim_set_keymap('n', '<leader>vn', ':lua vim.lsp.diagnostic.goto_next()<cr>', {noremap = true}) vim.api.nvim_set_keymap('n', '<leader>vp', ':lua vim.lsp.diagnostic.goto_prev()<cr>', {noremap = true}) - vim.api.nvim_set_keymap('n', '<leader>vp', ':lua vim.lsp.diagnostic.goto_prev()<cr>', {noremap = true}) - vim.api.nvim_set_keymap('n', '<leader>vca', ':lua vim.lsp.buf.code_action()<cr>', {noremap = true}) vim.api.nvim_set_keymap('n', '<leader>vf', ':lua vim.lsp.buf.formatting()<cr>', {noremap = true}) vim.api.nvim_set_keymap('n', '<leader>vi', ':lua vim.lsp.buf.implementation()<cr>', {noremap = true}) vim.api.nvim_set_keymap('n', '<leader>vrn', ':lua vim.lsp.buf.rename()<cr>', {noremap = true}) - -- not sure since when I need signature help cant access this, maybe move to normal, but already have - -- the new snippet for the floating - -- vim.api.nvim_set_keymap('n', '<leader>vsh', ':lua vim.lsp.buf.signature_help()<cr>', {noremap = true}) require "lsp_signature".on_attach() vim.cmd [[au Filetype php setl omnifunc=v:lua.vim.lsp.omnifunc]] |