summaryrefslogtreecommitdiff
path: root/lua/talha/set.lua
diff options
context:
space:
mode:
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