mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
fix(lsp): formatter now use new null-ls api function (#2135)
This commit is contained in:
parent
21b41688ee
commit
a1557d65de
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ local function select_default_formater(client)
|
|||
local formatters = require "lvim.lsp.null-ls.formatters"
|
||||
local client_filetypes = client.config.filetypes or {}
|
||||
for _, filetype in ipairs(client_filetypes) do
|
||||
if #vim.tbl_keys(formatters.list_registered_providers(filetype)) > 0 then
|
||||
if #vim.tbl_keys(formatters.list_registered(filetype)) > 0 then
|
||||
Log:debug("Formatter overriding detected. Disabling formatting capabilities for " .. client.name)
|
||||
client.resolved_capabilities.document_formatting = false
|
||||
client.resolved_capabilities.document_range_formatting = false
|
||||
|
|
Loading…
Reference in a new issue