feat(config): add better mapping documentation
This commit is contained in:
parent
d26cefb296
commit
42ceab06c0
1 changed files with 17 additions and 2 deletions
|
@ -1,7 +1,22 @@
|
|||
-- Additional remaps
|
||||
-- Add additional keymaps or disable existing ones
|
||||
-- To view maps set, use `:Telescope keymaps`
|
||||
-- or `:map`, `:map <leader>`
|
||||
|
||||
--[[
|
||||
|
||||
local cmd = vim.cmd
|
||||
local map = require('cosmic.utils').map
|
||||
|
||||
-- Example: Additional insert mapping:
|
||||
map('i', 'jj', '<esc>', { noremap = true, silent = true })
|
||||
]]
|
||||
|
||||
-- Mapping options:
|
||||
-- map('n', ...)
|
||||
-- map('v', ...)
|
||||
-- map('i', ...)
|
||||
-- map('t', ...)
|
||||
|
||||
-- Example: Disable find files keymap
|
||||
cmd('unmap <leader>f')
|
||||
|
||||
--]]
|
||||
|
|
Loading…
Add table
Reference in a new issue