nvim: use unstable lspsaga

This commit is contained in:
Moritz Böhme 2023-02-27 23:53:35 +01:00
parent 14b39fcd44
commit 17085b4a1b
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
4 changed files with 34 additions and 8 deletions

View file

@ -512,6 +512,22 @@
"type": "github" "type": "github"
} }
}, },
"lspsaga-nvim": {
"flake": false,
"locked": {
"lastModified": 1677497543,
"narHash": "sha256-xFba/hXqc0qyJH9Hd9XtXteXIqjJnIgYIy8Y5l9QPQQ=",
"owner": "glepnir",
"repo": "lspsaga.nvim",
"rev": "291629b704ba8fdd0134ef4204fb118050bca363",
"type": "github"
},
"original": {
"owner": "glepnir",
"repo": "lspsaga.nvim",
"type": "github"
}
},
"master": { "master": {
"locked": { "locked": {
"lastModified": 1677259386, "lastModified": 1677259386,
@ -838,6 +854,7 @@
"hypr-contrib": "hypr-contrib", "hypr-contrib": "hypr-contrib",
"hyprland": "hyprland", "hyprland": "hyprland",
"hyprpaper": "hyprpaper", "hyprpaper": "hyprpaper",
"lspsaga-nvim": "lspsaga-nvim",
"master": "master", "master": "master",
"neovim": "neovim", "neovim": "neovim",
"nil": "nil", "nil": "nil",

View file

@ -77,17 +77,22 @@
flake = false; flake = false;
}; };
copilot-lua = {
url = "github:zbirenbaum/copilot.lua";
flake = false;
};
lspsaga-nvim = {
url = "github:glepnir/lspsaga.nvim";
flake = false;
};
attic = { attic = {
url = "github:zhaofengli/attic"; url = "github:zhaofengli/attic";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "stable"; inputs.nixpkgs-stable.follows = "stable";
inputs.flake-utils.follows = "flake-utils"; inputs.flake-utils.follows = "flake-utils";
}; };
copilot-lua = {
url = "github:zbirenbaum/copilot.lua";
flake = false;
};
}; };
outputs = outputs =

View file

@ -277,6 +277,7 @@ local on_attach_def = function(_, bufnr)
p = { "<cmd>Lspsaga diagnostic_jump_prev<CR>", "prev error" }, p = { "<cmd>Lspsaga diagnostic_jump_prev<CR>", "prev error" },
c = { "<cmd>Lspsaga code_action<cr>", "code action" }, c = { "<cmd>Lspsaga code_action<cr>", "code action" },
r = { "<cmd>Lspsaga rename<cr>", "rename" }, r = { "<cmd>Lspsaga rename<cr>", "rename" },
i = { "<cmd>Lspsaga hover_doc ++keep<cr>", "show info (sticky)" },
f = { f = {
function() function()
vim.lsp.buf.format({ async = true }) vim.lsp.buf.format({ async = true })
@ -303,11 +304,9 @@ local on_attach_def = function(_, bufnr)
}, },
g = { g = {
name = "goto", name = "goto",
r = { vim.lsp.buf.references, "references" },
d = { "<cmd>Lspsaga peek_definition<cr>", "definition" }, d = { "<cmd>Lspsaga peek_definition<cr>", "definition" },
D = { vim.lsp.buf.declaration, "declaration" },
i = { vim.lsp.buf.implementation, "implementation" },
t = { "<cmd>Lspsaga peek_type_definition<cr>", "type defininition" }, t = { "<cmd>Lspsaga peek_type_definition<cr>", "type defininition" },
h = { "<cmd>Lspsaga lsp_finder<CR>", "lsp finder" },
}, },
}, { buffer = bufnr, silent = true }) }, { buffer = bufnr, silent = true })
end end

View file

@ -49,6 +49,11 @@ in
version = mkVersionInput inputs.copilot-lua; version = mkVersionInput inputs.copilot-lua;
src = inputs.copilot-lua; src = inputs.copilot-lua;
}); });
lspsaga-nvim-original = prev.vimPlugins.lspsaga-nvim-original.overrideAttrs (old: {
version = mkVersionInput inputs.lspsaga-nvim;
src = inputs.lspsaga-nvim;
});
}; };
master = import inputs.master { master = import inputs.master {