neovim: Configure Sorbet LSP
This commit is contained in:
parent
66731e0e21
commit
49184b690a
2 changed files with 14 additions and 1 deletions
|
|
@ -329,6 +329,7 @@ return {
|
|||
gopls = {
|
||||
gofumpt = true,
|
||||
},
|
||||
sorbet = {}, -- This one is _extra_ special for some reason.
|
||||
}
|
||||
|
||||
local on_attach = function(client, bufno)
|
||||
|
|
@ -449,6 +450,18 @@ return {
|
|||
},
|
||||
})
|
||||
end,
|
||||
|
||||
["sorbet"] = function()
|
||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||
|
||||
require("lspconfig").sorbet.setup({
|
||||
on_attach = function(client, bufno)
|
||||
on_attach(client, bufno)
|
||||
end,
|
||||
cmd = { "bundle", "exec", "srb", "typecheck", "--lsp", "--disable-watchman" },
|
||||
capabilities = capabilities,
|
||||
})
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue