From 5156e1aae36a153be98b6832ab3ced7be2b2faee Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 20 May 2024 16:06:57 +0200 Subject: refactor(hm): Rename to `modules/home` --- .../plgs/telescope/extensions/symbols/default.nix | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 modules/home/soispha/conf/nvim/plgs/telescope/extensions/symbols/default.nix (limited to 'modules/home/soispha/conf/nvim/plgs/telescope/extensions/symbols') diff --git a/modules/home/soispha/conf/nvim/plgs/telescope/extensions/symbols/default.nix b/modules/home/soispha/conf/nvim/plgs/telescope/extensions/symbols/default.nix new file mode 100644 index 00000000..fa166c02 --- /dev/null +++ b/modules/home/soispha/conf/nvim/plgs/telescope/extensions/symbols/default.nix @@ -0,0 +1,55 @@ +{pkgs, ...}: { + programs.nixvim = { + extraPlugins = [ + # Source of symbols for telescope symbols + pkgs.vimPlugins.telescope-symbols-nvim + ]; + keymaps = [ + { + key = "il"; + mode = "n"; + action = '' + function() + require('telescope.builtin').symbols{ sources = { + 'latex' + }} + end + ''; + lua = true; + options.desc = "[i]nsert a [l]atex symbol"; + } + { + key = "ie"; + mode = "n"; + action = '' + function() + require('telescope.builtin').symbols{ sources = { + 'emoji', + }} + end + ''; + lua = true; + options.desc = "[i]nsert a [e]moji"; + } + { + key = "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)"; + } + ]; + }; +} -- cgit 1.4.1