summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/user/options.lua
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2023-11-26 02:43:55 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2023-11-26 02:43:55 +0300
commit417cf9b495ebd0da63148e9b5f07e23d9a573276 (patch)
tree09c92cc15cd732be4977c1682498e9ba5943354c /.config/nvim/lua/user/options.lua
parent920caab3de6ca983a76dc277950158a2d9315210 (diff)
in the middle of creating proper nvim commit
Diffstat (limited to '.config/nvim/lua/user/options.lua')
-rw-r--r--.config/nvim/lua/user/options.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/.config/nvim/lua/user/options.lua b/.config/nvim/lua/user/options.lua
new file mode 100644
index 0000000..a8e58bc
--- /dev/null
+++ b/.config/nvim/lua/user/options.lua
@@ -0,0 +1,35 @@
+-- this file contains general options for nvim
+
+local o = vim.opt
+
+local options = {
+ -- general options
+ backup = false,
+ clipboard = "unnamedplus",
+ cmdheight = 1,
+ conceallevel = 0,
+ fileencoding = "utf-8",
+ hlsearch = true,
+ mouse = "a",
+ showmode = true,
+ tabstop = 8,
+ shiftwidth = 8,
+ smartindent = true,
+ swapfile = false,
+ timeoutlen = 1000, --ms
+ updatetime = 300,
+ writebackup = false,
+ expandtab = false, -- !!!!!!!!!
+ cursorline = false,
+ number = true,
+ wrap = false,
+ -- splitting
+ splitbelow = true,
+ splitright = true,
+}
+
+for key, val in pairs(options) do
+ o[key] = val
+end
+
+-- vim.cmd('colo evening')