update nvim config and junk
This commit is contained in:
parent
e1aac7d093
commit
c3dbc10c80
8 changed files with 96 additions and 14 deletions
22
.config/nvim/lua/rahcodes/solargraph.lua
Normal file
22
.config/nvim/lua/rahcodes/solargraph.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
local lsp = require 'lspconfig'
|
||||
lsp.solargraph.setup {
|
||||
cmd = { os.getenv("HOME") .. "/.asdf/shims/solargraph", '--stdio' },
|
||||
filetypes = { "ruby", "rakefile" },
|
||||
settings = {
|
||||
solargraph = {
|
||||
-- root_dir = nvim_lsp.util.root_pattern("Gemfile", ".git", "."),
|
||||
-- root_dir = root_pattern("Gemfile", ".git"),
|
||||
settings = {
|
||||
solargraph = {
|
||||
autoformat = true,
|
||||
completion = true,
|
||||
diagnostic = true,
|
||||
folding = true,
|
||||
references = true,
|
||||
rename = true,
|
||||
symbols = true
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue