-
Notifications
You must be signed in to change notification settings - Fork 8
/
defaults.lua
61 lines (60 loc) · 1.46 KB
/
defaults.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
-- File: defaults.lua
-- Author: Zakhary Kaplan <https://zakhary.dev>
-- Created: 20 Jul 2022
-- SPDX-License-Identifier: MIT
return {
-- Highlight group to use for trailing whitespace.
hlgroup = "Search",
-- Pattern to match trailing whitespace against. Edit with caution!
pattern = "\\v((.*%#)@!|%#)\\s+$",
-- Enabled filetypes.
filetype = {
-- Strictly enable only on `include`ed filetypes. When false, only disabled
-- on an `exclude`ed filetype.
strict = false,
-- Included filetype list.
include = {},
-- Excluded filetype list. Overrides `include` list.
exclude = {
"",
"aerial",
"alpha",
"checkhealth",
"cmp_menu",
"diff",
"lazy",
"lspinfo",
"man",
"mason",
"TelescopePrompt",
"toggleterm",
"Trouble",
"WhichKey",
},
},
-- Enabled buftypes.
buftype = {
-- Strictly enable only on `include`ed buftypes. When false, only disabled
-- on an `exclude`ed buftype.
strict = false,
-- Included buftype list.
include = {},
-- Excluded buftype list. Overrides `include` list.
exclude = {
"help",
"nofile",
"prompt",
"quickfix",
"terminal",
}
},
-- Trim on write behaviour.
trim = {
-- Auto trim on BufWritePre
auto = true,
-- Trailing whitespace as highlighted.
whitespace = true,
-- Final blank (i.e. whitespace only) lines.
blanklines = false,
}
}