summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dotfiles/vim.lua18
1 files changed, 11 insertions, 7 deletions
diff --git a/dotfiles/vim.lua b/dotfiles/vim.lua
index 7269c14..619cb9b 100644
--- a/dotfiles/vim.lua
+++ b/dotfiles/vim.lua
@@ -3,9 +3,9 @@
3 3
4vim.o.undofile = true 4vim.o.undofile = true
5vim.o.backup = true 5vim.o.backup = true
6vim.cmd "set backupdir-=." 6vim.opt.backupdir:remove(".")
7 7
8vim.cmd "set shortmess+=c" 8vim.opt.shortmess:append("c")
9 9
10vim.o.mouse = "a" 10vim.o.mouse = "a"
11 11
@@ -26,8 +26,8 @@ vim.o.cursorline = true
26 26
27vim.o.title = true 27vim.o.title = true
28 28
29vim.o.wildmode = "longest:full,full" 29vim.opt.wildmode = { "longest:full", "full" }
30vim.o.completeopt = "menu,menuone,preview,noinsert,noselect" 30vim.opt.completeopt = { "menu", "menuone", "preview", "noinsert", "noselect" }
31 31
32-- Use ripgrep 32-- Use ripgrep
33vim.o.grepprg = vim.g.ripgrep_path .. " --vimgrep --smart-case" 33vim.o.grepprg = vim.g.ripgrep_path .. " --vimgrep --smart-case"
@@ -39,10 +39,14 @@ vim.o.background = "dark"
39-- Mode already shown by the status line 39-- Mode already shown by the status line
40vim.o.showmode = false 40vim.o.showmode = false
41 41
42-- Do not set "trail:-" because it messes up the highlighting 42vim.opt.listchars = {
43vim.opt.listchars = { extends = ">", precedes = "<", nbsp = "+" } 43 extends = ">",
44 nbsp = "+",
45 precedes = "<",
46 tab = " ",
47 trail = "-",
48}
44vim.wo.list = true 49vim.wo.list = true
45vim.o.fillchars = "fold:─,vert:│"
46 50
47-- Leaders 51-- Leaders
48---------- 52----------