diff options
author | Squibid <me@zacharyscheiman.com> | 2023-11-24 21:38:31 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-11-24 21:38:31 -0500 |
commit | f35b13d669867209427449840ff0930a732591dc (patch) | |
tree | 3acb658ec5d01f456c49a097d56f736cbfbbfc7d /lua/conf/opts.lua | |
parent | ebf9d2d1c4682068f5116f7efc1568ce5adf4f1b (diff) | |
download | nvim-f35b13d669867209427449840ff0930a732591dc.tar.gz nvim-f35b13d669867209427449840ff0930a732591dc.tar.bz2 nvim-f35b13d669867209427449840ff0930a732591dc.zip |
more stuff too lazy to seperate
Diffstat (limited to 'lua/conf/opts.lua')
-rw-r--r-- | lua/conf/opts.lua | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/lua/conf/opts.lua b/lua/conf/opts.lua new file mode 100644 index 0000000..3997b5f --- /dev/null +++ b/lua/conf/opts.lua @@ -0,0 +1,65 @@ +-- better ui ------------------------------------------------------------------ +if pcall(require, "notify") then vim.notify = require("notify") end +o.colorcolumn = { 80 } + +-- 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 + +-- status column +o.signcolumn = 'yes:1' -- show gutter + +-- 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 +o.termguicolors = true +misc.colorscheme('mellow') + +-- better editing ------------------------------------------------------------- +o.clipboard = 'unnamedplus' -- system clipboard +o.splitkeep = "screen" -- keep same text on screen when spliting + +-- 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 |