nixos/config/nvim/lua/lsp/formatting.lua
2023-02-20 11:45:08 +00:00

10 lines
242 B
Lua

local lsp_formatting = function(bufnr)
vim.lsp.buf.format {
filter = function(client) return client.name == "null-ls" end,
bufnr = bufnr,
timeout_ms = 2000,
-- async = true,
}
end
return lsp_formatting