diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-05-24 11:53:49 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-05-24 11:53:49 +0200 |
| commit | badc26c307142216ff4c6d905014e501882bf029 (patch) | |
| tree | 1dd5d244fe18f7c25ad197b4b09f54dbe820a413 /lua/alpha/php_code_actions.lua | |
| parent | 4946cee5c1c100d10e0d04d107d5e67b7eb1e99f (diff) | |
| download | nvim-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.lua | 3 |
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 |