vim: rename buffer local maps for consistency with nvim API
This commit is contained in:
parent
0edb597382
commit
cfef55a487
4 changed files with 8 additions and 8 deletions
|
@ -1,3 +1,3 @@
|
||||||
local nmap = require 'fs.util'.buffer_nmap
|
local nmap = require 'fs.util'.buf_nmap
|
||||||
nmap { 'q', '<cmd>q<cr>' }
|
nmap { 'q', '<cmd>q<cr>' }
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
vim.bo.tabstop = 2
|
vim.bo.tabstop = 2
|
||||||
|
|
||||||
local nmap = require 'fs.util'.buffer_nmap
|
local nmap = require 'fs.util'.buf_nmap
|
||||||
|
|
||||||
-- execute the current line
|
-- execute the current line
|
||||||
nmap { '<leader>x', [[<cmd>call luaeval(getline("."))<cr>]] }
|
nmap { '<leader>x', [[<cmd>call luaeval(getline("."))<cr>]] }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
local nmap = require'fs.util'.buffer_nmap
|
local nmap = require'fs.util'.buf_nmap
|
||||||
|
|
||||||
local setup = function()
|
local setup = function()
|
||||||
-- Disable concealling on italic, bold, etc.
|
-- Disable concealling on italic, bold, etc.
|
||||||
|
|
|
@ -13,8 +13,8 @@ end
|
||||||
M.nmap = function(tbl) map('n', tbl[1], tbl[2], tbl[3]) end
|
M.nmap = function(tbl) map('n', tbl[1], tbl[2], tbl[3]) end
|
||||||
M.imap = function(tbl) map('i', tbl[1], tbl[2], tbl[3]) end
|
M.imap = function(tbl) map('i', tbl[1], tbl[2], tbl[3]) end
|
||||||
M.vmap = function(tbl) map('v', tbl[1], tbl[2], tbl[3]) end
|
M.vmap = function(tbl) map('v', tbl[1], tbl[2], tbl[3]) end
|
||||||
M.buffer_nmap = function(tbl) buf_map('n', tbl[1], tbl[2], tbl[3]) end
|
M.buf_nmap = function(tbl) buf_map('n', tbl[1], tbl[2], tbl[3]) end
|
||||||
M.buffer_imap = function(tbl) buf_map('i', tbl[1], tbl[2], tbl[3]) end
|
M.buf_imap = function(tbl) buf_map('i', tbl[1], tbl[2], tbl[3]) end
|
||||||
|
|
||||||
M.colors = function(gui)
|
M.colors = function(gui)
|
||||||
if gui or vim.opt.termguicolors:get() then
|
if gui or vim.opt.termguicolors:get() then
|
||||||
|
|
Loading…
Add table
Reference in a new issue