blob: fa166c02e2049ef3b1a2832c5c3eabe70185531e (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{pkgs, ...}: {
programs.nixvim = {
extraPlugins = [
# Source of symbols for telescope symbols
pkgs.vimPlugins.telescope-symbols-nvim
];
keymaps = [
{
key = "<space>il";
mode = "n";
action = ''
function()
require('telescope.builtin').symbols{ sources = {
'latex'
}}
end
'';
lua = true;
options.desc = "[i]nsert a [l]atex symbol";
}
{
key = "<space>ie";
mode = "n";
action = ''
function()
require('telescope.builtin').symbols{ sources = {
'emoji',
}}
end
'';
lua = true;
options.desc = "[i]nsert a [e]moji";
}
{
key = "<space>is";
mode = "n";
action = ''
function()
require('telescope.builtin').symbols{ sources = {
'emoji',
'gitmoji',
'julia',
'kaomoji',
'latex',
'math',
'nerd',
}}
end
'';
lua = true;
options.desc = "[i]nsert a [s]ymbol (like emojis)";
}
];
};
}
|