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:
parent
4061b94225
commit
885c28a5af
3 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
Manifest.toml
|
Manifest.toml
|
||||||
|
__pluto*
|
||||||
|
|
Loading…
Reference in a new issue