mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 15:19:26 +02:00
Fix: correct typos (#3117)
This commit is contained in:
parent
3008c75298
commit
6a72ad281e
6 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue