aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/php_code_actions.lua
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-05-24 11:53:49 +0200
committerAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-05-24 11:53:49 +0200
commitbadc26c307142216ff4c6d905014e501882bf029 (patch)
tree1dd5d244fe18f7c25ad197b4b09f54dbe820a413 /lua/alpha/php_code_actions.lua
parent4946cee5c1c100d10e0d04d107d5e67b7eb1e99f (diff)
downloadnvim-conf-badc26c307142216ff4c6d905014e501882bf029.tar.gz
nvim-conf-badc26c307142216ff4c6d905014e501882bf029.zip
Add lazygit, refactor code actions, fix lsp command
Diffstat (limited to 'lua/alpha/php_code_actions.lua')
-rw-r--r--lua/alpha/php_code_actions.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/alpha/php_code_actions.lua b/lua/alpha/php_code_actions.lua
index 998fcb5..5bca3c3 100644
--- a/lua/alpha/php_code_actions.lua
+++ b/lua/alpha/php_code_actions.lua
@@ -38,6 +38,9 @@ local php_setter_getter_actions = {
generator = {
fn = function(context)
local cursor_node = utils.get_master_node()
+ if cursor_node == nil then
+ return
+ end
if cursor_node.type(cursor_node) ~= "property_declaration" then
return
end