From ec235190e8f3240b78f943f6fbb10408783949d0 Mon Sep 17 00:00:00 2001 From: talha Date: Fri, 10 Jan 2025 14:54:54 +0500 Subject: initializing new branch --- lua/talha/set.lua | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'lua/talha/set.lua') 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 -- cgit v1.2.3