feat(nvim): add junegunn/vim-easy-align
This commit is contained in:
parent
b94e7267ce
commit
dc695c56b4
|
@ -16,4 +16,8 @@ M.vmap = function(tbl)
|
|||
vim.keymap.set("v", tbl[1], tbl[2], tbl[3])
|
||||
end
|
||||
|
||||
M.xmap = function(tbl)
|
||||
vim.keymap.set("x", tbl[1], tbl[2], tbl[3])
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -55,10 +55,15 @@ local function set_key_mappings()
|
|||
map("n", "<C-f>", ":silent !tmux neww tmux-sessioniser<CR>", { noremap = true, silent = true })
|
||||
|
||||
local imap = require "opdavies.keymap".imap
|
||||
local nmap = require "opdavies.keymap".nmap
|
||||
local xmap = require "opdavies.keymap".xmap
|
||||
|
||||
-- Easy insertion of a trailing ; or , from insert mode
|
||||
imap { ",,", "<Esc>A,<Esc>" }
|
||||
imap { ";;", "<Esc>A;<Esc>" }
|
||||
|
||||
nmap { "ga", "<Plug>(EasyAlign)" }
|
||||
xmap { "ga", "<Plug>(EasyAlign)" }
|
||||
end
|
||||
|
||||
local function set_highlights()
|
||||
|
|
|
@ -30,6 +30,7 @@ return packer.startup(function()
|
|||
use "folke/zen-mode.nvim"
|
||||
use "icatalina/vim-case-change"
|
||||
use "j-hui/fidget.nvim"
|
||||
use "junegunn/vim-easy-align"
|
||||
use "kazhala/close-buffers.nvim"
|
||||
use "kyazdani42/nvim-web-devicons"
|
||||
use "lewis6991/gitsigns.nvim"
|
||||
|
|
Loading…
Reference in a new issue