forked from Allaman/nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.lua
71 lines (70 loc) · 3.4 KB
/
options.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
local fn = vim.fn
return {
options = {
backup = false, -- creates a backup file
clipboard = "unnamedplus", -- keep in sync with the system clipboard
completeopt = "menu,menuone,noselect", -- A comma separated list of options for Insert mode completion
conceallevel = 0, -- so that `` is visible in markdown files
confirm = true, -- confirm to save changes before exiting modified buffer
cursorline = true, -- highlight the current line
dir = fn.stdpath("data") .. "/swp", -- swap file directory
expandtab = true, -- use spaces instead of tabs
formatoptions = "jcroqlnt", -- tcqj
grepprg = "rg --vimgrep --smart-case --", -- use rg instead of grep
hidden = true, -- Enable modified buffers in background
history = 500, -- Use the 'history' option to set the number of lines from command mode that are remembered.
ignorecase = true, -- ignore case in search patterns
inccommand = "nosplit", -- preview incremental substitute
list = false, -- enable or disable listchars
listchars = {
eol = "↲",
tab = "→ ",
trail = "+",
extends = ">",
precedes = "<",
space = "·",
nbsp = "␣",
},
mouse = "nv", -- enable mouse see :h mouse
number = true, -- set numbered lines
pumblend = 10, -- Popup blend
pumheight = 10, -- Maximum number of entries in a popup
relativenumber = true, -- set relative numbered lines
scrolloff = 3, -- Minimal number of screen lines to keep above and below the cursor
sessionoptions = { "buffers", "curdir", "tabpages", "winsize" },
shiftround = true, -- Round indent
shiftwidth = 2, -- the number of spaces inserted for each indentation
showmode = false, -- we don't need to see things like -- INSERT -- anymore
showtabline = 1, -- always show tabs; 0 never, 1 only if at least two tab pages, 2 always
sidescrolloff = 5, -- The minimal number of columns to scroll horizontally
signcolumn = "yes", -- Always show the signcolumn, otherwise it would shift the text each time
smartcase = true, -- Don't ignore case with capitals
smartindent = true, -- Insert indents automatically
splitbelow = true, -- force all horizontal splits to go below current window
splitright = true, -- force all vertical splits to go to the right of current window
swapfile = true, -- enable/disable swap file creation
tabstop = 2, -- how many columns a tab counts for
timeoutlen = 400, -- time to wait for a mapped sequence to complete (in milliseconds)
ttimeoutlen = 0, -- Time in milliseconds to wait for a key code sequence to complete
undodir = fn.stdpath("data") .. "/undodir", -- set undo directory
undofile = true, -- enable/disable undo file creation
undolevels = 1000,
updatetime = 300, -- faster completion
wildignorecase = true, -- When set case is ignored when completing file names and directories
wildmode = "full", -- Command-line completion mode
winminwidth = 5, -- minimum window width
wildignore = [[
.git,.hg,.svn
*.aux,*.out,*.toc
*.o,*.obj,*.exe,*.dll,*.manifest,*.rbc,*.class
*.ai,*.bmp,*.gif,*.ico,*.jpg,*.jpeg,*.png,*.psd,*.webp
*.avi,*.divx,*.mp4,*.webm,*.mov,*.m2ts,*.mkv,*.vob,*.mpg,*.mpeg
*.mp3,*.oga,*.ogg,*.wav,*.flac
*.eot,*.otf,*.ttf,*.woff
*.doc,*.pdf,*.cbr,*.cbz
*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz,*.kgb
*.swp,.lock,.DS_Store,._*
*/tmp/*,*.so,*.swp,*.zip,**/node_modules/**,**/target/**,**.terraform/**"
]],
},
}