diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-08-31 15:26:17 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-08-31 15:26:17 -0500 |
commit | 3f1c3c7a2e7976604c4c7badadd8d74d30092619 (patch) | |
tree | 8180915d98bcf024ec0a43ac8e72c4a60c090544 | |
parent | fa4014947fb6ba4bea05cb249a98e653bea04ab2 (diff) |
style(nvim): remove commented code
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/lsp/handlers.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/lsp/handlers.lua b/nvim/.config/nvim/lua/tobyvin/lsp/handlers.lua index cfd2f30..583db6f 100644 --- a/nvim/.config/nvim/lua/tobyvin/lsp/handlers.lua +++ b/nvim/.config/nvim/lua/tobyvin/lsp/handlers.lua @@ -1,6 +1,6 @@ local M = {} -local handler_prehook = function(method, pre_hook, post_hook) +local handler_hook = function(method, pre_hook, post_hook) local original = vim.lsp.handlers[method] vim.lsp.handlers[method] = function(...) if pre_hook ~= nil then @@ -14,13 +14,13 @@ local handler_prehook = function(method, pre_hook, post_hook) end M.setup = function() - handler_prehook("textDocument/definition", function(_, result) + handler_hook("textDocument/definition", function(_, result) if not result or vim.tbl_isempty(result) then vim.notify("[LSP] No definition found", "info") end end) - handler_prehook("textDocument/implementation", function(_, result) + handler_hook("textDocument/implementation", function(_, result) if not result or vim.tbl_isempty(result) then vim.notify("[LSP] No implementations found", "info") end |