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

Add options for soft wrap

This commit is contained in:
Mo8it 2022-03-21 22:51:01 +01:00
parent 4061b94225
commit 885c28a5af
3 changed files with 12 additions and 0 deletions

View file

@ -3,6 +3,11 @@ local opts = {
noremap = true, noremap = true,
silent = true, silent = true,
} }
local e_opts = {
noremap = true,
silent = true,
expr = true,
}
-- --
@ -10,6 +15,10 @@ map("", "<Space>", "<Nop>", opts)
vim.g.mapleader = " " vim.g.mapleader = " "
vim.g.maplocalleader = " " vim.g.maplocalleader = " "
-- For navigation with soft wrap
map("n", "j", "v:count == 0 ? 'gj' : 'j'", e_opts)
map("n", "k", "v:count == 0 ? 'gk' : 'k'", e_opts)
-- --
map("n", "<C-k>", ":BufferLineCycleNext<CR>", opts) map("n", "<C-k>", ":BufferLineCycleNext<CR>", opts)

View file

@ -39,5 +39,7 @@ opt.shell = "/usr/bin/fish"
opt.confirm = true opt.confirm = true
opt.linebreak = true
-- Highlight on yank -- Highlight on yank
vim.cmd([[au TextYankPost * silent! lua vim.highlight.on_yank {timeout=1200}]]) vim.cmd([[au TextYankPost * silent! lua vim.highlight.on_yank {timeout=1200}]])

1
.gitignore vendored
View file

@ -1 +1,2 @@
Manifest.toml Manifest.toml
__pluto*