diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-06 15:29:58 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-06 15:29:58 +0200 |
commit | ad05cb18f03f3a97a918e090c38ba760147a0bb6 (patch) | |
tree | 233097b3ccbf1a4fef18a291d0d8fda3fba34c03 /config/essentials/nvim/lua/user/set.lua | |
parent | 1a7e35285abb5db60d2e1544ce0100e82c5d3490 (diff) | |
parent | 511b6c1bc9acd9e6029d08a6c448f6e0037755fb (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'config/essentials/nvim/lua/user/set.lua')
-rw-r--r-- | config/essentials/nvim/lua/user/set.lua | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/config/essentials/nvim/lua/user/set.lua b/config/essentials/nvim/lua/user/set.lua deleted file mode 100644 index e236a1d..0000000 --- a/config/essentials/nvim/lua/user/set.lua +++ /dev/null @@ -1,57 +0,0 @@ -local opt = vim.opt - -opt.clipboard = "unnamed" - -opt.termguicolors = true - -opt.number = true -opt.relativenumber = true -opt.showmatch = true -opt.matchtime = 0 -opt.showcmd = true -opt.cursorline = true -opt.ruler = true - -opt.path:append("**") - -opt.wildmenu = true -opt.incsearch = true -opt.hlsearch = false - -opt.mouse = "" - -opt.tabstop = 4 -opt.shiftwidth = 4 -opt.expandtab = true -opt.backspace = "indent,eol,start" - -opt.signcolumn = "yes" -opt.updatetime = 100 -opt.laststatus = 2 -opt.history = 200 -opt.encoding = "utf-8" -opt.fileencoding = "utf-8" - -opt.smartindent = true -opt.scrolloff = 8 - -opt.ignorecase = true -opt.smartcase = true - -opt.swapfile = false -opt.backup = false - -opt.spelllang = "en_us,nl" -opt.formatoptions = "cqrnj" - --- Get the current working directory, replace the $HOME portion of the path with ~, --- and extract the last three directories -local cwd = vim.fn.getcwd():gsub(os.getenv('HOME'), '~') -local last_dirs = string.match(cwd, "[^/]+/[^/]+/[^/]+/?$") -if last_dirs then - opt.titlestring = last_dirs .. " -> %t" -else - opt.titlestring = cwd .. " -> %t" -end - -opt.title = true |