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,34 +1,23 @@
local lsp = require('config.lsp')
local lsp = require "config.lsp"
vim.lsp.config('*', {
capabilities = lsp.capabilities(),
vim.lsp.config("*", {
on_attach = lsp.on_attach,
capabilities = lsp.capabilities(),
})
vim.api.nvim_create_autocmd('LspAttach', {
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
callback = function(ev)
local client = vim.lsp.get_client_by_id(ev.data.client_id)
if client then
lsp.on_attach(client, ev.buf)
end
end,
})
for _, server in ipairs({
'lua_ls',
'pyright',
'ts_ls',
'rust_analyzer',
'gopls',
'clangd',
'bashls',
'jsonls',
'html',
'cssls',
}) do
local ok, config = pcall(require, 'lsp.' .. server)
if ok then
vim.lsp.config(server, config)
end
vim.lsp.enable(server)
for _, server in ipairs {
"lua_ls",
"pyright",
"ts_ls",
"rust_analyzer",
"gopls",
"clangd",
"bashls",
"jsonls",
"html",
"cssls",
} do
local ok, config = pcall(require, "lsp." .. server)
if ok and config then vim.lsp.config(server, config) end
vim.lsp.enable(server)
end