Port the live ~/.config/nvim working tree (bcherb2/nvim master plus its uncommitted git.lua and minimap.lua edits): adds claudecode, eslint, lsp, typescript, meow-yarn and refactoring-fix specs, drops the files the live repo deleted, and takes live for everything else. Kept from public: lazy.lua with luarocks disabled, the ai_assist cond guard (nvim-ai-assist is not anonymously clonable, so a fresh box only gets it from the private clone list), and the scrubbed endpoint comment in place of live's LAN address.
37 lines
1.3 KiB
Lua
37 lines
1.3 KiB
Lua
return {
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = function(_, opts)
|
|
-- LazyVim maps gD unconditionally; tsgo has no textDocument/declaration.
|
|
-- Gate it so servers without it keep Vim's built-in gD.
|
|
table.insert(opts.servers["*"].keys, {
|
|
"gD",
|
|
vim.lsp.buf.declaration,
|
|
desc = "Goto Declaration",
|
|
has = "declaration",
|
|
})
|
|
-- Call hierarchy: the tool for understanding a call chain without editing.
|
|
-- <leader>ci = who calls this (incoming); <leader>co = what this calls (outgoing).
|
|
-- Uses Telescope's picker when present. Gated on callHierarchy support. Added 2026-10-23.
|
|
table.insert(opts.servers["*"].keys, {
|
|
"<leader>ci",
|
|
function()
|
|
local ok, tb = pcall(require, "telescope.builtin")
|
|
if ok then tb.lsp_incoming_calls() else vim.lsp.buf.incoming_calls() end
|
|
end,
|
|
desc = "Incoming Calls (callers)",
|
|
has = "callHierarchy",
|
|
})
|
|
table.insert(opts.servers["*"].keys, {
|
|
"<leader>co",
|
|
function()
|
|
local ok, tb = pcall(require, "telescope.builtin")
|
|
if ok then tb.lsp_outgoing_calls() else vim.lsp.buf.outgoing_calls() end
|
|
end,
|
|
desc = "Outgoing Calls (callees)",
|
|
has = "callHierarchy",
|
|
})
|
|
end,
|
|
},
|
|
}
|