update nvim config and junk
This commit is contained in:
parent
06382cf0a1
commit
e272951042
7 changed files with 95 additions and 14 deletions
|
|
@ -51,4 +51,18 @@ return {
|
|||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-telescope/telescope-live-grep-args.nvim",
|
||||
-- This will not install any breaking changes.
|
||||
-- For major updates, this must be adjusted manually.
|
||||
version = "^1.0.0",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("telescope").load_extension("live_grep_args")
|
||||
end
|
||||
}
|
||||
}
|
||||
|
|
|
|||
22
lua/rahcodes/solargraph.lua
Normal file
22
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