add symbol usage

This commit is contained in:
jmarkin 2025-10-17 10:22:14 +03:00
parent 8cc99ea13c
commit 180627e3d9
3 changed files with 37 additions and 18 deletions

View file

@ -250,11 +250,11 @@
]
},
"locked": {
"lastModified": 1760392170,
"narHash": "sha256-WftxJgr2MeDDFK47fQKywzC72L2jRc/PWcyGdjaDzkw=",
"lastModified": 1760657536,
"narHash": "sha256-t1AJErf/qMMvrPuYhUftotACvsShESjQvoFxMFLEZbk=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "46d55f0aeb1d567a78223e69729734f3dca25a85",
"rev": "59cc72533edf0788599ea312198eeeca2c48e931",
"type": "github"
},
"original": {
@ -411,11 +411,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1760486707,
"narHash": "sha256-GRvWDKV5VGmUQShCUgZf4co9OiTgig98mulXf/MlVBM=",
"lastModified": 1760659500,
"narHash": "sha256-oBVyFuQfDBZ0HHYWKv7SUc3RECrKIJj++hAQedfHpjk=",
"owner": "nix-community",
"repo": "neovim-nightly-overlay",
"rev": "800a400cde11cbdc9296bc3246869495560d2c9e",
"rev": "c9c781b2434050fe75aaa69a0664362fa4c721e9",
"type": "github"
},
"original": {
@ -427,11 +427,11 @@
"neovim-src": {
"flake": false,
"locked": {
"lastModified": 1760483365,
"narHash": "sha256-VAquB4cK0A9UoBr4mec9NC56YghdrfEzY+VrAzun+/8=",
"lastModified": 1760632793,
"narHash": "sha256-qkxukXjPMsel0cSNMlJhP9IWFMd3jICGHQDQQ8NLdb0=",
"owner": "neovim",
"repo": "neovim",
"rev": "c8d6f3cf8a121985e6b2d96b27fdb6131cc7309e",
"rev": "371ad48135edc0584ea38272251167f23a998f09",
"type": "github"
},
"original": {
@ -504,11 +504,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1760284886,
"narHash": "sha256-TK9Kr0BYBQ/1P5kAsnNQhmWWKgmZXwUQr4ZMjCzWf2c=",
"lastModified": 1760524057,
"narHash": "sha256-EVAqOteLBFmd7pKkb0+FIUyzTF61VKi7YmvP1tw4nEw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "cf3f5c4def3c7b5f1fc012b3d839575dbe552d43",
"rev": "544961dfcce86422ba200ed9a0b00dd4b1486ec5",
"type": "github"
},
"original": {
@ -537,11 +537,11 @@
"oil-nvim": {
"flake": false,
"locked": {
"lastModified": 1760506241,
"narHash": "sha256-yKYuzQVheMils/9zSQcnOu/jywi37T/jTPHnboz6ubg=",
"lastModified": 1760550172,
"narHash": "sha256-Nrhp5YP83URB0pB8XbXgoge0EnfbOCcO4Z+HnPqPOWg=",
"owner": "stevearc",
"repo": "oil.nvim",
"rev": "200df01e4b92d0010a3bfbde92b91a4ef5a5c9db",
"rev": "71948729cda5fc1b761d6ae60ff774b5525f1d50",
"type": "github"
},
"original": {

View file

@ -27,6 +27,25 @@ in
}
'';
}
{
plugin = symbol-usage-nvim;
type = "lua";
optional = true;
config = /*lua*/''
lze.load {
"${symbol-usage-nvim.pname}",
event="LspAttach",
after=function()
require('symbol-usage').setup({
vt_position = 'end_of_line',
references = { enabled = true, include_declaration = false },
definition = { enabled = true },
implementation = { enabled = true },
})
end
}
'';
}
{
plugin = fidget-nvim;
type = "lua";

View file

@ -9,21 +9,21 @@ M.keys = {
{
"<leader>sd",
function()
require("fzf-lua").lsp_definitions({ multiprocess = true })
require("fzf-lua").lsp_definitions()
end,
{ desc = "Search: Definitions", table.unpack(opts_l) },
},
{
"<leader>sS",
function()
require("fzf-lua").lsp_live_workspace_symbols({ multiprocess = true })
require("fzf-lua").lsp_live_workspace_symbols()
end,
{ desc = "Search: Symbols", table.unpack(opts_l) },
},
{
"grr",
function()
require("fzf-lua").lsp_references({ multiprocess = true, ignore_current_line = true })
require("fzf-lua").lsp_references({ ignore_current_line = true })
end,
{ desc = "Search: references", table.unpack(opts_l) },
},