.config/nvim/lua/config/options.lua

changeset 1026
b70ed2db4354
parent 1025
9dfc1a5a52dc
child 1039
91900ecf0e8c
equal deleted inserted replaced
1025:9dfc1a5a52dc 1026:b70ed2db4354
9 o.shiftwidth = 2 9 o.shiftwidth = 2
10 10
11 -- Display 11 -- Display
12 o.breakindent = true 12 o.breakindent = true
13 o.breakindentopt = "min:66,shift:2" 13 o.breakindentopt = "min:66,shift:2"
14 o.conceallevel = 3
14 o.diffopt:append("algorithm:patience") 15 o.diffopt:append("algorithm:patience")
15 o.fillchars = "fold: ,vert:│" 16 o.fillchars = "fold: ,vert:│"
16 o.linebreak = true 17 o.linebreak = true
17 o.listchars = "tab:⇥·,trail:◼,nbsp:◻,extends:»,precedes:«" 18 o.listchars = "tab:⇥·,trail:◼,nbsp:◻,extends:»,precedes:«"
19 o.pumheight = 10
18 o.showbreak = "» " 20 o.showbreak = "» "
19 o.termguicolors = true 21 o.termguicolors = true
20 o.signcolumn = "number" 22 o.signcolumn = "number"
23 o.winminwidth = 5
21 24
22 -- set font etc 25 -- set font etc
23 if vim.fn.has("gui") then 26 if vim.fn.has("gui") then
24 o.number = true 27 o.number = true
25 end 28 end
44 o.tags:append({".tags", "./.tags;"}) 47 o.tags:append({".tags", "./.tags;"})
45 o.wildignore = "*~,*.o,*.pyc,.git/*,hg/*,.svn/*" 48 o.wildignore = "*~,*.o,*.pyc,.git/*,hg/*,.svn/*"
46 49
47 if vim.fn.executable("ag") then 50 if vim.fn.executable("ag") then
48 o.grepprg = "ag --vimgrep" 51 o.grepprg = "ag --vimgrep"
49 -- o.grepformat:prepend({"%f:%l:%c:%m", "%f"}) 52 o.grepformat = {"%f:%l:%c:%m", "%f"}
50 -- o.errorformat:append("%f")
51 end 53 end

mercurial