Skip to content

Commit

Permalink
Update solargraph LSP settings
Browse files Browse the repository at this point in the history
This likely won't work by default.
See williamboman/nvim-lsp-installer#187 (comment)
  • Loading branch information
Slotos committed Jan 11, 2022
1 parent cd37c85 commit 58ab214
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions settings/LSP.vim
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,17 @@ if vim.fn['pac#loaded']('nvim-lspconfig') then
}

-- (optional) Customize the options passed to the server
-- if server.name == "tsserver" then
-- opts.root_dir = function() ... end
-- end
if server.name == "solargraph" then

opts.filetypes = { "ruby" }
opts.flags = { debounce_text_changes = 150, }
opts.settings = {
solargraph = {
diagnostics = true,
formatting = true,
}
}
end

-- This setup() function is exactly the same as lspconfig's setup function.
-- Refer to https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
Expand Down

0 comments on commit 58ab214

Please sign in to comment.