mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2024-10-17 20:52:40 +00:00
text ftplugins
This commit is contained in:
parent
c5511d0c11
commit
4684b47b33
3 changed files with 15 additions and 14 deletions
|
@ -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)
|
|
1
.config/nvim/ftplugin/asciidoc.lua
Symbolic link
1
.config/nvim/ftplugin/asciidoc.lua
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
text.lua
|
|
@ -1 +1 @@
|
||||||
asciidoc.lua
|
text.lua
|
13
.config/nvim/ftplugin/text.lua
Normal file
13
.config/nvim/ftplugin/text.lua
Normal 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)
|
Loading…
Reference in a new issue