From badc26c307142216ff4c6d905014e501882bf029 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 24 May 2022 11:53:49 +0200 Subject: Add lazygit, refactor code actions, fix lsp command --- lua/alpha/php_code_actions.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua/alpha/php_code_actions.lua') 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 -- cgit v1.2.3