diff options
author | chaesngmin <[email protected]> | 2022-10-03 10:19:59 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-03 01:19:59 +0000 |
commit | 6a72ad281e598e445d37aaa87a9ef293d974bc40 (patch) | |
tree | 74974fdbc86d385c882d5d0a9123582ef17a48ea /lua/lvim/lsp/utils.lua | |
parent | 3008c752982553a25f9bc9967f5757af66c7df7e (diff) |
Fix: correct typos (#3117)
Diffstat (limited to 'lua/lvim/lsp/utils.lua')
-rw-r--r-- | lua/lvim/lsp/utils.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lvim/lsp/utils.lua b/lua/lvim/lsp/utils.lua index c2ffe3fa..53571f20 100644 --- a/lua/lvim/lsp/utils.lua +++ b/lua/lvim/lsp/utils.lua @@ -120,7 +120,7 @@ function M.setup_document_highlight(client, bufnr) end function M.setup_document_symbols(client, bufnr) - vim.g.navic_silence = false -- can be set to true to supress error + vim.g.navic_silence = false -- can be set to true to suppress error local symbols_supported = client.supports_method "textDocument/documentSymbol" if not symbols_supported then Log:debug("skipping setup for document_symbols, method not supported by " .. client.name) @@ -167,9 +167,9 @@ function M.format_filter(client) local n = require "null-ls" local s = require "null-ls.sources" local method = n.methods.FORMATTING - local avalable_formatters = s.get_available(filetype, method) + local available_formatters = s.get_available(filetype, method) - if #avalable_formatters > 0 then + if #available_formatters > 0 then return client.name == "null-ls" elseif client.supports_method "textDocument/formatting" then return true |