Skip to content

Commit

Permalink
Merge pull request #630 from MasahiroSakoda/628-feature-configure-cmd…
Browse files Browse the repository at this point in the history
…line-abbrev

feat(neovim): add abbreviation for typo
  • Loading branch information
MasahiroSakoda authored Jul 25, 2024
2 parents 5048926 + 76f50db commit de330e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions home/dot_config/nvim/lua/core/keymap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ local nv, nx, nt, nxo, o, ox, c = {"n", "v"}, {"n", "x"}, {"n", "t"}, {"n", "x",
local ok, wk = pcall(require, "which-key")
if not ok then vim.notify("Failed loading " .. "which-key", vim.log.levels.WARN) end

-- Abbreviation for typo
vim.cmd[[
cnoreabbrev Q q
cnoreabbrev q1 q!
cnoreabbrev Q1 q!
cnoreabbrev W w
cnoreabbrev Wq wq
cnoreabbrev WQ wq
]]

---------------------------------------------------------------------------
-- which-key commands
---------------------------------------------------------------------------
Expand Down

0 comments on commit de330e5

Please sign in to comment.