{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)"; } ]; }; }