nixos: gen 76 @ lilac — 2026-09-24 14:51 26.05.20260918.cf9d2fb (Yarara) -----
This commit is contained in:
@@ -129,6 +129,24 @@ in
|
||||
|
||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||
|
||||
-- rustaceanvim auto-starts rust-analyzer on FileType rust, picking it up
|
||||
-- from PATH -- so per-project rust-analyzer pins (e.g. from a project's
|
||||
-- flake devShell/direnv) are used automatically without extra config here.
|
||||
vim.g.rustaceanvim = {
|
||||
server = {
|
||||
capabilities = capabilities,
|
||||
on_attach = function(_, bufnr)
|
||||
local map = function(k, f) vim.keymap.set("n", k, f, { buffer = bufnr, silent = true }) end
|
||||
map("gd", vim.lsp.buf.definition)
|
||||
map("gr", vim.lsp.buf.references)
|
||||
map("K", vim.lsp.buf.hover)
|
||||
map("<leader>rn", vim.lsp.buf.rename)
|
||||
map("<leader>ca", vim.lsp.buf.code_action)
|
||||
map("<leader>f", function() vim.lsp.buf.format({ async = true }) end)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
local bundles = vim.fn.glob(
|
||||
"${javaDebug}/share/vscode/extensions/vscjava.vscode-java-debug/server/com.microsoft.java.debug.plugin-*.jar",
|
||||
true, true)
|
||||
|
||||
Reference in New Issue
Block a user