optimize the shit out of theme loading

switch neovim to vim.pack away from lazy
add sandboxagent package to netty
update defaults
This commit is contained in:
Harivansh Rathi 2026-03-30 23:44:32 -04:00
parent 6dfcfad05f
commit 30ac6bc674
24 changed files with 4764 additions and 646 deletions

View file

@ -1,28 +1,19 @@
local M = {}
function M.on_attach(_, bufnr)
local function buf(mode, lhs, rhs)
bmap(mode, lhs, rhs, { buffer = bufnr })
end
local function buf(mode, lhs, rhs) bmap(mode, lhs, rhs, { buffer = bufnr }) end
buf('n', 'gd', vim.lsp.buf.definition)
buf('n', 'gD', vim.lsp.buf.declaration)
buf('n', '<C-]>', vim.lsp.buf.definition)
buf('n', 'gi', vim.lsp.buf.implementation)
buf('n', 'gr', vim.lsp.buf.references)
buf('n', 'K', vim.lsp.buf.hover)
buf('n', '<leader>rn', vim.lsp.buf.rename)
buf({ 'n', 'v' }, '<leader>ca', vim.lsp.buf.code_action)
buf('n', '<leader>f', function() vim.lsp.buf.format({ async = true }) end)
buf("n", "gd", vim.lsp.buf.definition)
buf("n", "gD", vim.lsp.buf.declaration)
buf("n", "<C-]>", vim.lsp.buf.definition)
buf("n", "gi", vim.lsp.buf.implementation)
buf("n", "gr", vim.lsp.buf.references)
buf("n", "K", vim.lsp.buf.hover)
buf("n", "<leader>rn", vim.lsp.buf.rename)
buf({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action)
buf("n", "<leader>f", function() vim.lsp.buf.format { async = true } end)
end
function M.capabilities()
local caps = vim.lsp.protocol.make_client_capabilities()
local ok, blink = pcall(require, 'blink.cmp')
if ok then
caps = blink.get_lsp_capabilities(caps)
end
return caps
end
function M.capabilities() return vim.lsp.protocol.make_client_capabilities() end
return M