diff options
Diffstat (limited to 'nvim/lua/options.lua')
-rw-r--r-- | nvim/lua/options.lua | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nvim/lua/options.lua b/nvim/lua/options.lua new file mode 100644 index 0000000..944ea6d --- /dev/null +++ b/nvim/lua/options.lua @@ -0,0 +1,43 @@ +--Sets automatic update of the file internals
+vim.api.nvim_exec2([[
+ autocmd FocusGained,BufEnter,BufWinEnter,WinEnter,CursorHold,CursorHoldI * checktime
+ autocmd FileChangedShellPost * echohl WarningMsg | echo "File changed on disk. Buffer reloaded." | echohl None | checktime
+]],{})
+vim.api.nvim_exec2([[set shortmess=I]],{})
+
+-- vim.api.nvim_exec2([[autocmd TermOpen * startinsert]],{})
+
+vim.opt.termguicolors = true
+-- vim.o.statusline = [[%<%f\ %h%m%r%=%-13.(%l,%c%V%)\ %P]]
+-- vim.o.laststatus = 2
+
+vim.opt.splitbelow = true
+vim.opt.splitright = true
+
+vim.opt.relativenumber = true
+vim.opt.number = true
+vim.opt.tabstop = 4
+vim.opt.softtabstop = 4
+vim.opt.shiftwidth = 4
+vim.opt.expandtab = true
+
+vim.opt.swapfile = false
+vim.opt.backup = false
+vim.opt.undodir = os.getenv("USERPROFILE").."/.vim/undodir"
+vim.opt.undofile = true
+
+vim.opt.hlsearch = false
+vim.opt.incsearch = true
+
+vim.opt.scrolloff = 999
+vim.opt.updatetime = 50
+
+vim.opt.wrap = true
+
+vim.opt.virtualedit = "block"
+vim.opt.inccommand = "split"
+vim.opt.ignorecase = true
+
+vim.cmd[[set laststatus=2]]
+-- vim.opt.clipboard = "unnamedplus"
+--vim.opt.colorcolumn = "180"
|