diff options
author | Soispha <soispha@vhack.eu> | 2023-08-25 23:07:01 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-08-25 23:09:50 +0200 |
commit | 8a6c60c3916e6543e25289910ac3ca27e7238601 (patch) | |
tree | 4fbcd538e78a8eeb6db770b75b2d15adbf01c34a | |
parent | Feat(hm/conf/neovim/plugins/telescope/extensions/rooter): Init (diff) | |
download | nixos-config-8a6c60c3916e6543e25289910ac3ca27e7238601.tar.gz nixos-config-8a6c60c3916e6543e25289910ac3ca27e7238601.zip |
Feat(hm/conf/neovim/plugins/telescope/extensions/symbols): Init
Diffstat (limited to '')
-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; - }; - }; } |