feat(neovim): add nix-store.nvim and change old calls

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-02-18 04:32:35 -03:00
parent 34ad9056ca
commit 39e987678c
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
6 changed files with 206 additions and 219 deletions

View file

@ -0,0 +1,9 @@
---@type LazySpec
return {
"wizardlink/nix-store.nvim",
priority = 999999,
lazy = false,
opts = {
allow_unfree = true,
},
}

View file

@ -32,7 +32,7 @@ return {
dap.adapters.cppdbg = {
id = "cppdbg",
type = "executable",
command = vim.fn.getnixpath "vscode-extensions.ms-vscode.cpptools"
command = vim.fn.get_nix_store "vscode-extensions.ms-vscode.cpptools"
.. "/share/vscode/extensions/ms-vscode.cpptools/debugAdapters/bin/OpenDebugAD7",
}

View file

@ -7,14 +7,18 @@ return {
dependencies = {
{
"tris203/rzls.nvim",
opts = {
capabilities = vim.lsp.protocol.make_client_capabilities(),
path = vim.fn.getnixpath "rzls" .. "/bin/rzls",
},
opts = function(_, opts)
opts = {
capabilities = vim.lsp.protocol.make_client_capabilities(),
path = vim.fn.get_nix_store "rzls" .. "/bin/rzls",
}
return opts
end,
},
},
opts = function(_, opts)
local rzlspath = vim.fn.getnixpath "rzls"
local rzlspath = vim.fn.get_nix_store "rzls"
require("roslyn.config").get()
opts = {