feat: nvim config

This commit is contained in:
Rasyidan Akbar F. 2025-10-28 15:59:39 +07:00
commit 03507560de
23 changed files with 685 additions and 328 deletions

View file

@ -1,29 +0,0 @@
-- Declare language servers provided via Nix so LazyVim skips Mason installs.
return {
{
"mason-org/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = {}
end,
},
{
"neovim/nvim-lspconfig",
opts = function(_, opts)
opts.servers = opts.servers or {}
local servers = {
lua_ls = { mason = false },
nil_ls = { mason = false },
pyright = { mason = false },
tsserver = { mason = false },
rust_analyzer = { mason = false },
gopls = { mason = false },
clangd = { mason = false },
}
for server, server_opts in pairs(servers) do
local existing = opts.servers[server] or {}
opts.servers[server] = vim.tbl_deep_extend("force", existing, server_opts)
end
end,
},
}