update nvim config and junk

This commit is contained in:
Rahsheen Porter 2024-03-01 14:07:35 -05:00
parent 06382cf0a1
commit e272951042
7 changed files with 95 additions and 14 deletions

View file

@ -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
}
}

View 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
}
}
},
}
}