fix(nvim): Pin rest.nvim to v1.0.0

Use pinentry-curses for macos
This commit is contained in:
Uttarayan Mondal
2024-03-27 09:56:41 +05:30
parent ae470c7a6c
commit 0be8d1aa55
5 changed files with 17 additions and 20 deletions

View File

@@ -253,7 +253,7 @@
base_url = "https://pass.uttarayan.me";
pinentry =
if device.isMac
then pkgs.pinentry_mac
then pkgs.pinentry-curses
else pkgs.pinentry-gnome3;
};
};

View File

@@ -300,7 +300,8 @@ in {
"<leader>\"" = ''[["+]]'';
"<leader>c" = "[[<cmd>ChatGPT<cr>]]";
"<leader>dr" = "[[<cmd>RustLsp debuggables<cr>]]";
"<leader>ee" = "[[<cmd>Rest run<cr>]]";
# "<leader>ee" = "[[<cmd>Rest run<cr>]]";
"<leader>ee" = "[[<Plug>RestNvim]]";
"<leader>el" = "[[<cmd>Rest run last<cr>]]";
"<leader>hh" = "[[<cmd>DevdocsOpenFloat<cr>]]";
"<leader>hl" = "[[<cmd>DevdocsToggle<cr>]]";
@@ -392,15 +393,7 @@ in {
end
end
do
function setup()
require('rest-nvim').setup()
end
success, output = pcall(setup)
if not success then
print("Failed to setup rest-nvim: " .. output)
end
end
catcher(require('rest-nvim').setup)
-- require('telescope').load_extension("dap")

4
flake.lock generated
View File

@@ -1461,11 +1461,11 @@
"locked": {
"lastModified": 1,
"narHash": "sha256-PaTXAe/aVsZln/cKtHPXfiWIL+VwFxRiSQU0CRmglLI=",
"path": "/nix/store/5v4fml58z01s1lf98qhi4zp8plqqjv41-source/flakes",
"path": "./flakes",
"type": "path"
},
"original": {
"path": "/nix/store/5v4fml58z01s1lf98qhi4zp8plqqjv41-source/flakes",
"path": "./flakes",
"type": "path"
}
},

View File

@@ -62,7 +62,7 @@
subflakes = {
# TODO: Will eventualy move all the non-flake fetchFromGitHub urls to this flake
# As inputs for the flake that way I don't have to update the hashes manually
url = "./flakes";
url = "path:./flakes";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay = {

View File

@@ -235,21 +235,24 @@
rest-nvim-src = final.pkgs.fetchFromGitHub {
owner = "rest-nvim";
repo = "rest.nvim";
rev = "64175b161b61b6807b4c6f3f18dd884325cf04e0";
# rev = "64175b161b61b6807b4c6f3f18dd884325cf04e0";
# Before v2 release
rev = "v1.0.0";
# sha256 = "sha256-3EC0j/hEbdQ8nJU0I+LGmE/zNnglO/FrP/6POer0338";
# sha256 = "sha256-3EC0j/hEbdQ8nJU0I+LGmE/zNnglO/FrP/6POer0339";
sha256 = "sha256-w/Z9lHu99gpbmrDCw/MEUDy6jyABsC7K5dbbl3K+HWk=";
sha256 = "sha256-jSY5WXx5tQAD0ZefPbg2luHywGAMcB9wdUTy6Av3xnY";
};
in {
vimPlugins =
prev.vimPlugins
// {
rest-nvim = final.neovimUtils.buildNeovimPlugin {
rest-nvim = final.vimUtils.buildVimPlugin {
pname = "rest.nvim";
version = "scm-1";
version = "1.0.0";
src = rest-nvim-src;
rockspecVersion = "0.2-1";
buildInputs = with final.pkgs.lua51Packages; [lua lua-curl mimetypes nvim-nio xml2lua];
# version = "scm-1";
# rockspecVersion = "0.2-1";
# buildInputs = with final.pkgs.lua51Packages; [lua lua-curl mimetypes nvim-nio xml2lua];
};
};
# lua51Packages =
@@ -297,6 +300,7 @@ in [
zellij
catppuccinThemes
vimPlugins
rest-nvim-overlay
tree-sitter-grammars
tmuxPlugins
anyrun-overlay