blob: 740bb04c48a9000016cbf35b8203e6517757a3da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
pkgs,
lib,
...
}: {
programs.nixvim = {
# TODO: package goto-preview though a module
extraConfigLuaPost = ''
${lib.strings.fileContents ./lua/goto-preview.lua}
'';
extraPlugins = [
pkgs.vimExtraPlugins.goto-preview
];
maps.normal = {
"<space>gd" = {
action = "require('goto-preview').goto_preview_definition";
lua = true;
desc = "[G]oto [D]efinition";
};
"<space>gtd" = {
action = "require('goto-preview').goto_preview_type_definition";
lua = true;
desc = "[G]oto the [t]ype [D]efinition";
};
"<space>gi" = {
action = "require('goto-preview').goto_preview_implementation";
lua = true;
desc = "[G]oto [I]mplementations";
};
"<space>gr" = {
action = "require('goto-preview').goto_preview_references";
lua = true;
desc = "[G]o to all [R]eferences of the symbol";
};
"\\<space>" = {
action = "require('goto-preview').close_all_win";
lua = true;
desc = "close all preview windows";
};
};
};
}
|