summaryrefslogtreecommitdiff
path: root/lua/linux/set.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2023-11-19 13:47:03 +0500
committertalha <talha@talhaamir.xyz>2023-11-19 13:47:03 +0500
commita75d4659bfac04a1f5cad4166cc68f873768c653 (patch)
tree1e3d7f0198bd16ca3270bcb3a72955f21738971a /lua/linux/set.lua
Adding files for upload
Diffstat (limited to 'lua/linux/set.lua')
-rw-r--r--lua/linux/set.lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/lua/linux/set.lua b/lua/linux/set.lua
new file mode 100644
index 0000000..0366b03
--- /dev/null
+++ b/lua/linux/set.lua
@@ -0,0 +1,36 @@
+local op = vim.opt
+
+op.nu = true
+op.relativenumber = true
+
+op.tabstop = 2
+op.softtabstop = 2
+op.shiftwidth = 2
+op.expandtab = true
+
+op.smartindent = true
+op.wrap = false
+
+op.swapfile = false
+op.backup = false
+op.undodir = os.getenv("HOME") .. "/.vim/undodir"
+op.undofile = true
+
+op.hlsearch = false
+op.incsearch = true
+
+op.termguicolors = true
+op.cursorline = true
+
+op.scrolloff = 8
+
+-- autoreload a file after inactivity
+op.autoread = true
+vim.api.nvim_command([[au CursorHold * checktime]])
+
+op.updatetime = 50
+
+op.colorcolumn = '120'
+
+-- required to allow mm (mark-move) command to move file
+vim.g.netrw_keepdir = 0