summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/options.lua
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-08-30 11:43:37 -0400
committertriethyl <triethylammonium@pm.me>2025-08-30 11:43:37 -0400
commita6e2d28ba490818357dc5d9063f2afc5c7cda997 (patch)
tree97f9918235f344def9d2715c7140efd0c8ae2ac8 /pkgs/custom-neovim/config/lua/options.lua
parent39e8454b2a6d7a6e4402206bea6c4d074aad016d (diff)
neovim: added some options and optimization
Diffstat (limited to 'pkgs/custom-neovim/config/lua/options.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/options.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/custom-neovim/config/lua/options.lua b/pkgs/custom-neovim/config/lua/options.lua
index 7b6bbe0..d74b9a5 100644
--- a/pkgs/custom-neovim/config/lua/options.lua
+++ b/pkgs/custom-neovim/config/lua/options.lua
@@ -1,6 +1,7 @@
-- General
-vim.opt.clipboard = "unnamedplus" -- use system clipboard
+vim.o.clipboard = "unnamedplus" -- use system clipboard
vim.o.mouse = "" -- Don't use mouse
+vim.o.timeout = false -- Disable key combo timeout
-- UI
vim.o.winborder = 'rounded' -- rounded window borders where possible.
@@ -53,6 +54,9 @@ vim.o.backup = false -- create a backup file
vim.o.swapfile = false -- creates a swapfile
vim.o.writebackup = false -- if a file is being edited by another program, it is not allowed to be edited
+-- Enable persistent undo
+vim.o.undofile = true
+
-- Autocommands
-- Prevent Comments on Newlines