43 lines
1.3 KiB
Cheetah
43 lines
1.3 KiB
Cheetah
-- 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"
|
|
vim.g.grammalecte_cli_py = "/usr/bin/grammalecte-cli"
|
|
opt.spell = true
|
|
opt.spelllang = { "fr" }
|
|
opt.undodir = "/home/taziden/.vim/undo"
|
|
{{ else }}
|
|
opt.backupdir = "/home/jrabier/.vim/backup"
|
|
opt.undodir = "/home/jrabier/.vim/undo"
|
|
{{ end }}
|
|
opt.hidden = true
|
|
opt.ignorecase = true
|
|
opt.lcs = { trail = ".", tab = ">-" }
|
|
opt.list = true
|
|
opt.modeline = true
|
|
opt.number = true
|
|
opt.showmatch = true
|
|
opt.undofile = true
|
|
opt.expandtab = true
|
|
opt.tabstop = 4
|
|
opt.shiftwidth = 4
|
|
opt.softtabstop = 4
|
|
opt.timeoutlen = 200 -- https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration
|
|
opt.mouse = "a"
|
|
opt.wrap = true
|
|
opt.rtp:append (vim.fn.stdpath ('data') .. '/site') -- https://github.com/neovim/neovim/issues/23082
|
|
opt.inccommand = "split"
|