vim: clean up old mapping functions
This commit is contained in:
parent
9011cadd56
commit
861c13b7bd
3 changed files with 3 additions and 11 deletions
|
@ -1,3 +0,0 @@
|
|||
local nmap = require 'fs.util'.nmap
|
||||
nmap { 'q', '<cmd>q<cr>', { buffer = true } }
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
local util = require 'fs.util'
|
||||
local nmap = util.nmap
|
||||
local imap = util.imap
|
||||
local vmap = util.vmap
|
||||
local nmap = function(tbl) vim.keymap.set('n', tbl[1], tbl[2], tbl[3]) end
|
||||
local imap = function(tbl) vim.keymap.set('i', tbl[1], tbl[2], tbl[3]) end
|
||||
local vmap = function(tbl) vim.keymap.set('v', tbl[1], tbl[2], tbl[3]) end
|
||||
|
||||
-- better navigation for wrapped lines
|
||||
nmap { 'j', 'gj' }
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
local M = {}
|
||||
|
||||
M.nmap = function(tbl) vim.keymap.set('n', tbl[1], tbl[2], tbl[3]) end
|
||||
M.imap = function(tbl) vim.keymap.set('i', tbl[1], tbl[2], tbl[3]) end
|
||||
M.vmap = function(tbl) vim.keymap.set('v', tbl[1], tbl[2], tbl[3]) end
|
||||
|
||||
M.colors = function(gui)
|
||||
if gui or vim.opt.termguicolors:get() then
|
||||
return {
|
||||
|
|
Loading…
Add table
Reference in a new issue