1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00

Move soft wrap keybindings to asciidoc ftplugin

This commit is contained in:
Mo 2022-05-04 22:48:56 +02:00
parent ebd81fb04b
commit 17f2342c60
2 changed files with 12 additions and 4 deletions

View file

@ -1 +1,13 @@
local set = vim.keymap.set
-- Soft wrap
vim.wo.wrap = true
-- For navigation with soft wrap
local opts = {
buffer = true,
silent = true,
expr = true,
}
set("n", "j", "v:count == 0 ? 'gj' : 'j'", opts)
set("n", "k", "v:count == 0 ? 'gk' : 'k'", opts)

View file

@ -18,10 +18,6 @@ set("", "<Space>", "<Nop>", opts)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- For navigation with soft wrap
set("n", "j", "v:count == 0 ? 'gj' : 'j'", e_opts)
set("n", "k", "v:count == 0 ? 'gk' : 'k'", e_opts)
--
set("n", "<C-k>", cmd("BufferLineCycleNext"), opts)