summaryrefslogtreecommitdiff
path: root/lua/talha/set.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2025-01-10 14:54:54 +0500
committertalha <talha@talhaamir.xyz>2025-01-10 15:01:25 +0500
commitec235190e8f3240b78f943f6fbb10408783949d0 (patch)
tree6b1a447a5c68584e54cc0c03235b77d37d61897d /lua/talha/set.lua
parent440cc9de7021c7059523b6dafbf02f247291f160 (diff)
initializing new branch
Diffstat (limited to 'lua/talha/set.lua')
-rw-r--r--lua/talha/set.lua22
1 files changed, 13 insertions, 9 deletions
diff --git a/lua/talha/set.lua b/lua/talha/set.lua
index c2c578d..91129ad 100644
--- a/lua/talha/set.lua
+++ b/lua/talha/set.lua
@@ -3,13 +3,12 @@ local op = vim.opt
op.nu = true
op.relativenumber = true
-op.tabstop = 2
op.softtabstop = 2
op.shiftwidth = 2
-op.expandtab = true
+op.expandtab = false
-op.smartindent = true
-op.wrap = false
+op.cindent = true
+op.wrap = true
op.swapfile = false
op.backup = false
@@ -28,11 +27,16 @@ op.autoread = true
op.updatetime = 50
-op.colorcolumn = '120'
+op.colorcolumn = '80'
+if vim.fn.executable('rg') > 0 then
+ op.grepprg = 'rg --vimgrep'
+end
+
+-- netrw settings
-- required to allow mm (mark-move) command to move file
vim.g.netrw_keepdir = 1
-
--- building c/cpp files
-vim.opt.makeprg = GetPlatformBuildCommand()
-
+vim.g.netrw_banner = 0
+--vim.g.netrw_browse_split = 4
+vim.g.netrw_altv = 1
+--vim.g.netrw_liststyle = 3