feat(nvim): mappings to add trailing characters
Add mappings to add a trailing comma or semicolon to the end of the current line from insert mode.
This commit is contained in:
parent
14ebc86df5
commit
54397bc899
|
@ -53,6 +53,12 @@ local function set_key_mappings()
|
|||
vim.cmd [[ nnoremap <expr> <CR> {-> v:hlsearch ? ":nohl\<CR>" : "\<CR>"}() ]]
|
||||
|
||||
map("n", "<C-f>", ":silent !tmux neww tmux-sessioniser<CR>", { noremap = true, silent = true })
|
||||
|
||||
local imap = require "opdavies.keymap".imap
|
||||
|
||||
-- Easy insertion of a trailing ; or , from insert mode
|
||||
imap({ ",,", "<Esc>A,<Esc>" })
|
||||
imap({ ";;", "<Esc>A;<Esc>" })
|
||||
end
|
||||
|
||||
local function set_highlights()
|
||||
|
|
Loading…
Reference in a new issue