diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-04 10:04:47 +0100 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-04 10:04:47 +0100 |
| commit | e1b0a35e04546333634c3ceb6ed84cb21ef90c38 (patch) | |
| tree | 573ddfa23750192cbc95ac0f7eeaea262ecca14c /lua/settings.lua | |
| parent | 0a1fd3601928a82135822829641a109cb5948a8c (diff) | |
Initial commit
Diffstat (limited to 'lua/settings.lua')
| -rw-r--r-- | lua/settings.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/settings.lua b/lua/settings.lua new file mode 100644 index 0000000..df21e3d --- /dev/null +++ b/lua/settings.lua @@ -0,0 +1,22 @@ +vim.opt.fileencoding = "utf-8" +vim.opt.wrap = false +vim.opt.cmdheight = 1 +-- vim.opt.mouse = "a" +vim.opt.cursorline = true +vim.opt.splitbelow = true +vim.opt.splitright = true +vim.opt.showtabline = 2 +vim.opt.shiftwidth = 4 +vim.opt.smartindent = true +vim.opt.relativenumber = true +vim.opt.number = true +vim.opt.signcolumn = "yes" +vim.opt.updatetime = 300 +vim.opt.timeoutlen = 1000 +vim.opt.undofile = true +vim.opt.clipboard = "unnamedplus" +-- vim.opt.termguicolors = true +vim.opt.shortmess:append("sI") + +-- Open a file from its last left off position +vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]] |
