1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-04 23:40:32 +00:00

text ftplugins

This commit is contained in:
Mo 2022-09-08 21:26:48 +02:00
parent c5511d0c11
commit 4684b47b33
3 changed files with 15 additions and 14 deletions

View file

@ -1,13 +0,0 @@
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

@ -0,0 +1 @@
text.lua

View file

@ -1 +1 @@
asciidoc.lua
text.lua

View file

@ -0,0 +1,13 @@
local set = vim.keymap.set
-- Soft wrap
vim.wo.wrap = true
-- 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)