nvim/lua/lsp/formatting.lua
Evie Litherland-Smith 4054030afc Initial add
Separate nvim config into separate project, to be used as submodule
for main dotfile
2023-05-04 12:39:25 +01:00

12 lines
300 B
Lua

local lsp_formatting = function(bufnr)
vim.lsp.buf.format {
bufnr = bufnr,
timeout_ms = 2000,
async = true,
filter = function(client)
return client.name ~= "jedi_language_server" and client.name ~= "lua_ls"
end,
}
end
return lsp_formatting