mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 17:03:39 +02:00
style: lua annotations and handle deprecated methods
This commit is contained in:
parent
21ee35f710
commit
6b837e9165
3 changed files with 20 additions and 13 deletions
|
@ -82,7 +82,7 @@ function M.get_formatters(bufnr)
|
|||
}
|
||||
|
||||
---@type lsp.Client[]
|
||||
local clients = vim.lsp.get_active_clients({ bufnr = bufnr })
|
||||
local clients = require("lazyvim.util").get_clients({ bufnr = bufnr })
|
||||
for _, client in ipairs(clients) do
|
||||
if M.supports_format(client) then
|
||||
if (#null_ls > 0 and client.name == "null-ls") or #null_ls == 0 then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue