diff options
Diffstat (limited to 'home-manager')
-rw-r--r-- | home-manager/soispha/config/neovim/nixvim/plugins/telescope/extensions/symbols/default.nix | 63 |
1 files changed, 47 insertions, 16 deletions
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/telescope/extensions/symbols/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/telescope/extensions/symbols/default.nix index bbe19fb6..1a679776 100644 --- a/home-manager/soispha/config/neovim/nixvim/plugins/telescope/extensions/symbols/default.nix +++ b/home-manager/soispha/config/neovim/nixvim/plugins/telescope/extensions/symbols/default.nix @@ -1,20 +1,51 @@ -{...}: { - programs.nixvim.maps = { - normal = { - "gff" = { - action = "function() require('telescope').extensions.frecency.frecency() end"; - lua = true; - desc = "activate the frecency file selection"; +{pkgs, ...}: { + programs.nixvim = { + extraPlugins = [ + # Source of symbols for telescope symbols + pkgs.vimExtraPlugins.telescope-symbols-nvim + ]; + maps = { + normal = { + "<space>il" = { + action = '' + function() + require('telescope.builtin').symbols{ sources = { + 'latex' + }} + end + ''; + lua = true; + desc = "[i]nsert a [l]atex symbol"; + }; + "<space>ie" = { + action = '' + function() + require('telescope.builtin').symbols{ sources = { + 'emoji', + }} + end + ''; + lua = true; + desc = "[i]nsert a [e]moji"; + }; + "<space>is" = { + action = '' + function() + require('telescope.builtin').symbols{ sources = { + 'emoji', + 'gitmoji', + 'julia', + 'kaomoji', + 'latex', + 'math', + 'nerd', + }} + end + ''; + lua = true; + desc = "[i]nsert a [s]ymbol (like emojis)"; + }; }; }; }; - programs.nixvim.plugins.telescope = { - extensions.frecency = { - enable = true; - showUnindexed = true; - showScores = true; - # TODO add this: - #db_safe_mode = true; - }; - }; } |