-- Options are automatically loaded before lazy.nvim startup -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Add any additional options here local opt = vim.opt opt.backspace = "2" opt.showcmd = true opt.laststatus = 2 opt.autowrite = true opt.cursorline = true opt.autoread = true opt.shiftround = true opt.number = true --opt.completeopt = { "menuone", "noselect", "noinsert" } opt.backup = true {{- if eq .chezmoi.hostname "taupo" }} opt.backupdir = "/home/taziden/.vim/backup" {{ else }} opt.backupdir = "/home/jrabier/.vim/backup" {{ end }} opt.hidden = true opt.ignorecase = true opt.lcs = { trail = ".", tab = ">-" } opt.list = true opt.modeline = true opt.number = true opt.showmatch = true --opt.spelllang = fr opt.undofile = true {{- if eq .chezmoi.hostname "taupo" }} opt.undodir = "/home/taziden/.vim/undo" {{ else }} opt.undodir = "/home/jrabier/.vim/undo" {{ end }} opt.expandtab = true opt.tabstop = 4 opt.shiftwidth = 4 opt.softtabstop = 4 opt.pastetoggle = "" opt.timeoutlen = 200 -- https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration opt.mouse = "a" opt.spelllang = { "fr" } opt.wrap = true