aboutsummaryrefslogtreecommitdiff
path: root/config/vis
diff options
context:
space:
mode:
Diffstat (limited to 'config/vis')
-rw-r--r--config/vis/visrc.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua
index 08e2377..40a4314 100644
--- a/config/vis/visrc.lua
+++ b/config/vis/visrc.lua
@@ -187,3 +187,18 @@ vis:map(vis.modes.NORMAL, ' x', function()
vis:message('')
vis:command(':q')
end)
+
+vis:command_register('faicon', function()
+ local win = vis.win
+ if not win or not win.file then return end
+ local file = win.file
+ local icons = {'hands-helping', 'chalkboard-teacher', 'desktop', 'comments', 'lightbulb', 'pencil-alt', 'earlybirds'}
+ local choosen = lspc:select(icons)
+ if choosen then
+ file:insert(win.selection.pos, '\\faIcon{' .. choosen .. '}')
+ end
+end)
+
+vis:map(vis.modes.NORMAL, 'fa', function()
+ vis:command(':faicon')
+end)