summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorrob <[email protected]>2021-07-11 09:00:15 +0100
committerGitHub <[email protected]>2021-07-11 12:30:15 +0430
commitf2e4f540a3d4b88a751d6b8a2ab8da9407e73e2b (patch)
tree20870aa40863217241db3fa21925a8e02151104e /lua
parent38d118d9b2ad409da8c1b6162b514637b4f24ca7 (diff)
Line wrap cursor movement option (#855)
Diffstat (limited to 'lua')
-rw-r--r--lua/default-config.lua1
-rw-r--r--lua/settings.lua6
2 files changed, 6 insertions, 1 deletions
diff --git a/lua/default-config.lua b/lua/default-config.lua
index cf8f86be..e3a613cb 100644
--- a/lua/default-config.lua
+++ b/lua/default-config.lua
@@ -7,6 +7,7 @@ USER = vim.fn.expand "$USER"
O = {
leader_key = "space",
colorscheme = "spacegray",
+ line_wrap_cursor_movement = true,
transparent_window = false,
format_on_save = true,
vnsip_dir = vim.fn.stdpath "config" .. "/snippets",
diff --git a/lua/settings.lua b/lua/settings.lua
index 756e7746..b146a50d 100644
--- a/lua/settings.lua
+++ b/lua/settings.lua
@@ -9,7 +9,11 @@ cmd "filetype plugin on"
cmd('let &titleold="' .. TERMINAL .. '"')
cmd "set inccommand=split"
cmd "set iskeyword+=-"
-cmd "set whichwrap+=<,>,[,],h,l"
+
+if O.line_wrap_cursor_movement then
+ cmd "set whichwrap+=<,>,[,],h,l"
+end
+
if O.transparent_window then
cmd "au ColorScheme * hi Normal ctermbg=none guibg=none"
cmd "au ColorScheme * hi SignColumn ctermbg=none guibg=none"