diff options
author | kylo252 <[email protected]> | 2022-05-03 01:10:51 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-03 03:40:51 +0430 |
commit | cfa702e6fe2f875a2c674182fe2f86e8f613aa1e (patch) | |
tree | a129a8a43c649a883b14e691dbf086abd52195c4 /lua/lvim/lsp/handlers.lua | |
parent | 10449b4e09086791abf382a53d2c0d61c85e89ad (diff) |
refactor: use api-autocmds for lsp functions (#2549)
* refactor: use api-autocmds for lsp functions
* chore: use the existing client.supports_method api
* fix: a callback in an autocmd doesn't pass nil
* revert: keep changes minimal to which-key
Co-authored-by: Abouzar Parvan <[email protected]>
Diffstat (limited to 'lua/lvim/lsp/handlers.lua')
-rw-r--r-- | lua/lvim/lsp/handlers.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lua/lvim/lsp/handlers.lua b/lua/lvim/lsp/handlers.lua index 5da0b21e..84f2ba5f 100644 --- a/lua/lvim/lsp/handlers.lua +++ b/lua/lvim/lsp/handlers.lua @@ -16,10 +16,4 @@ function M.setup() vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, lvim.lsp.float) end -function M.show_line_diagnostics() - local config = lvim.lsp.diagnostics.float - config.scope = "line" - return vim.diagnostic.open_float(0, config) -end - return M |