feat: add leader key and lsp format keybind

This commit is contained in:
anth64 committed 2026-10-25 12:45:54 +01:00
1 parent 2cce717f2b
commit 018af24722
1 file changed
+5 -3
+5 -3
View File
@@ -1,9 +1,11 @@
local plug = require("plugins/vis-plug") local plug = require("plugins/vis-plug")
local n = vis.modes.NORMAL local n = vis.modes.NORMAL
local leader = " "
vis:map(n, "=", plug.plugins.format.apply) vis:map(n, "=", plug.plugins.format.apply)
vis:map(n, "<C-p>", ":fzf<Enter>") vis:map(n, "<C-p>", ":fzf<Enter>")
vis:map(n, " pf", ":fzf<Enter>") vis:map(n, leader .. "pf", ":fzf<Enter>")
vis:map(n, " ps", ":grep ") vis:map(n, leader .. "ps", ":grep ")
vis:map(n, " pv", ":e .<Enter>") vis:map(n, leader .. "pv", ":e .<Enter>")
vis:map(n, leader .. "f", ":lspc-format<Enter>")