diff options
Diffstat (limited to '')
-rw-r--r-- | lua/conf/opts.lua | 105 |
1 files changed, 45 insertions, 60 deletions
diff --git a/lua/conf/opts.lua b/lua/conf/opts.lua index 0d0863c..91c8055 100644 --- a/lua/conf/opts.lua +++ b/lua/conf/opts.lua @@ -1,65 +1,50 @@ --- better ui ------------------------------------------------------------------ -if pcall(require, "notify") then vim.notify = require("notify") end -o.colorcolumn = { 80 } +-- color stuff +if vim.fn.has("termguicolors") then + vim.opt.termguicolors = true +end -- buffer -o.scrolloff = 5 -o.wrap = true -- wraping lines -o.linebreak = true -- fix where line is wraped -o.cursorline = true - --- statusbar -o.laststatus = 3 -o.cmdheight = 1 -o.showmode = false -- stop vim from showing mode (we have a statusbar) - --- tabline -o.showtabline = 2 +vim.opt.scrolloff = 5 +vim.opt.wrap = true -- wraping lines +vim.opt.linebreak = true -- fix where line is wraped +vim.opt.cursorline = true -- indents + tabs local tabwidth = 2 -o.expandtab = true -o.smarttab = true -o.cindent = true -o.autoindent = true -o.tabstop = tabwidth -o.shiftwidth = tabwidth -o.softtabstop = tabwidth - --- colorscheme -if vim.fn.has("termguicolors") then - o.termguicolors = true -end -misc.colorscheme('mellow') - --- better editing ------------------------------------------------------------- -o.clipboard = 'unnamedplus' -- system clipboard -o.splitkeep = "screen" -- keep same text on screen when spliting -o.updatetime = 200 - --- file saving ---------------------------------------------------------------- -o.swapfile = false -o.undofile = true -o.confirm = true - --- searching ------------------------------------------------------------------ -o.ignorecase = true -o.smartcase = true -o.wrapscan = true -o.showmatch = true -o.incsearch = true - --- wild menus ----------------------------------------------------------------- -o.wildoptions = 'pum' -o.pumblend = 3 -o.pumheight = 20 - -o.wildignorecase = true -o.wildignore = '*.o' - --- netrw ---------------------------------------------------------------------- -g.netrw_banner = 1 -g.netrw_localcopydircmd = 'cp -r' -g.netrw_winsize = 30 -g.netrw_liststyle = 1 -g.netrw_preview = 1 +vim.opt.expandtab = true +vim.opt.smarttab = true +vim.opt.cindent = true +vim.opt.autoindent = true +vim.opt.tabstop = tabwidth +vim.opt.shiftwidth = tabwidth +vim.opt.softtabstop = tabwidth + +vim.opt.clipboard = 'unnamedplus' -- system clipboard +vim.opt.updatetime = 200 + +-- file saving +vim.opt.swapfile = false +vim.opt.undofile = true +vim.opt.confirm = true + +-- searching +vim.opt.ignorecase = true +vim.opt.smartcase = true +vim.opt.wrapscan = true +vim.opt.showmatch = true +vim.opt.incsearch = true + +-- wild menus +vim.opt.wildoptions = 'pum' +vim.opt.pumblend = 3 +vim.opt.pumheight = 20 + +vim.opt.wildignorecase = true +vim.opt.wildignore = '*.o' + +-- netrw +vim.g.netrw_banner = 0 +vim.g.netrw_winsize = 30 +vim.g.netrw_liststyle = 1 +vim.g.netrw_sizestyle = "H" +vim.g.netrw_hide = 1 |