nvf time!
This commit is contained in:
parent
216904f679
commit
86977f4ecf
57 changed files with 4076 additions and 217 deletions
22
modules/editors/nvf/lua/misc/abbrev.lua
Normal file
22
modules/editors/nvf/lua/misc/abbrev.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
local cmd = vim.cmd
|
||||
|
||||
-- luacheck: ignore
|
||||
local abbreviations = {
|
||||
Wq = 'wq', -- keep making those typos
|
||||
WQ = 'wq',
|
||||
Wqa = 'wqa',
|
||||
W = 'w',
|
||||
Q = 'q',
|
||||
Qa = 'qa',
|
||||
Bd = 'bd',
|
||||
E = 'e',
|
||||
q1 = 'q!', -- this is for when I don't want to reach to shift
|
||||
qa1 = 'qa!',
|
||||
mk = 'mark', -- make marks faster
|
||||
st = 'sort', -- sort
|
||||
}
|
||||
|
||||
-- add more abbreviations
|
||||
for left, right in pairs(abbreviations) do
|
||||
cmd.cnoreabbrev(('%s %s'):format(left, right))
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue