nvim: Use the new API for setting keymap
This commit is contained in:
parent
8d118381d8
commit
686fec51d6
6 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
vim.api.nvim_set_keymap('x', 'gA', '<Plug>(EasyAlign)', {})
|
||||
vim.api.nvim_set_keymap('n', 'gA', '<Plug>(EasyAlign)', {})
|
||||
vim.keymap.set('x', 'gA', '<Plug>(EasyAlign)', {})
|
||||
vim.keymap.set('n', 'gA', '<Plug>(EasyAlign)', {})
|
||||
|
||||
vim.g.easy_align_delimiters = {
|
||||
[';'] = { pattern = ';' , left_margin = 0 },
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local remap = vim.api.nvim_set_keymap
|
||||
local remap = vim.keymap.set
|
||||
|
||||
remap('n', '<Leader>fg', ':FZFGGrep<CR>', { noremap = true })
|
||||
remap('n', '<Leader>fG', ':FZFGrep<CR>', { noremap = true })
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local remap = vim.api.nvim_set_keymap
|
||||
local remap = vim.keymap.set
|
||||
local opts = { noremap=true, silent=true, unique=true }
|
||||
|
||||
require'hop'.setup { keys = 'etovxqpdygfblzhckisuran' }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local remap = vim.api.nvim_set_keymap
|
||||
local remap = vim.keymap.set
|
||||
local opts = { noremap=true, silent=true, unique=true }
|
||||
|
||||
require'marks'.setup {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local nvim_lint = require 'lint'
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<LocalLeader>l', ':lua require(\'lint\').try_lint()<CR>', { noremap = true, unique = true })
|
||||
vim.keymap.set('n', '<LocalLeader>l', ':lua require(\'lint\').try_lint()<CR>', { noremap = true, unique = true })
|
||||
|
||||
nvim_lint.linters_by_ft = {
|
||||
dockerfile = { 'hadolint' },
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local remap = vim.api.nvim_set_keymap
|
||||
local remap = vim.keymap.set
|
||||
local expr_opts = { noremap=true, unique=true, expr=true }
|
||||
local silent_opts = { noremap=true, unique=true, silent=true }
|
||||
local opts = { noremap=true, unique=true }
|
||||
|
|
Loading…
Reference in a new issue