This commit is contained in:
Jaroslaw Konik 2023-08-04 15:17:26 +02:00
parent bcf1be937b
commit aa5a957093

View file

@ -352,6 +352,7 @@ local function on_attach(client, buffer)
callback = function() callback = function()
vim.lsp.buf.format({ vim.lsp.buf.format({
async = false, async = false,
timeout_ms = 5000,
filter = function(cl) filter = function(cl)
return cl.name ~= "tsserver" return cl.name ~= "tsserver"
end, end,
@ -689,6 +690,9 @@ require("lspconfig").lua_ls.setup({
}) })
require("lspconfig").solargraph.setup({ require("lspconfig").solargraph.setup({
cmd = { "bundle", "exec", "solargraph", "stdio" }, cmd = { "bundle", "exec", "solargraph", "stdio" },
{
formatting = false,
},
on_attach = on_attach, on_attach = on_attach,
}) })
local null_ls = require("null-ls") local null_ls = require("null-ls")