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

changeset 1015
21950cadff6b
parent 1014
b57969db48db
child 1019
7e42fd320166
equal deleted inserted replaced
1014:b57969db48db 1015:21950cadff6b
24 o.number = true 24 o.number = true
25 end 25 end
26 26
27 -- Behavior 27 -- Behavior
28 o.autowriteall = true 28 o.autowriteall = true
29 o.backup = true
30 o.completeopt:append({"menuone", "noselect"})
29 o.ignorecase = true 31 o.ignorecase = true
30 o.scrolloff = 15 32 o.scrolloff = 15
33 o.sessionoptions = {"buffers", "curdir", "localoptions"}
31 o.sidescrolloff = 10 34 o.sidescrolloff = 10
32 o.smartcase = true 35 o.smartcase = true
33 o.splitbelow = true 36 o.splitbelow = true
34 o.splitright = true 37 o.splitright = true
38 o.undofile = true
35 o.wildignorecase = true 39 o.wildignorecase = true
36 40
37 -- Paths 41 -- Paths
38 o.tags:append(".tags,./.tags;") 42 o.tags:append({".tags", "./.tags;"})
39 o.wildignore = "*~,*.o,*.pyc,.git/*,hg/*,.svn/*" 43 o.wildignore = "*~,*.o,*.pyc,.git/*,hg/*,.svn/*"
40 44
41 vim.api.nvim_create_autocmd("LspAttach", { 45 if vim.fn.executable("ag") then
42 once = true, 46 o.grepprg = "ag --vimgrep"
43 callback = function(args) 47 o.grepformat:prepend({"%f:%l:%c:%m", "%f"})
44 vim.opt.number = true 48 o.errorformat:append("%f")
45 end, 49 end
46 }) 50

mercurial