-
Notifications
You must be signed in to change notification settings - Fork 7
/
settings.lua
52 lines (44 loc) · 978 Bytes
/
settings.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
-- Colorscheme = 'github_dimmed'
Colorscheme = 'rose-pine'
-- Colorscheme = 'github_light'
Font = 'FiraCode Nerd Font:h17'
TabSize = 2
DATA_PATH = vim.fn.stdpath('data')
CACHE_PATH = vim.fn.stdpath('cache')
Lua = {}
Lua.formatLineLength = 80
Term = {}
Term.shell = vim.o.shell -- or a string with the path to a shell binary
Term.size = 15
Term.shade = true
Term.direction = 'horizontal' -- horizontal, vertical, window, or float
Term.floatBorder = 'shadow' -- single, double, shadow, or curved
LSP = {}
LSP.format_on_save = true
LSP.Servers = {
efm = {
format = true,
},
gopls = {
format = true,
},
jsonls = {
format = false,
},
lua_ls = {
format = false,
},
html = true,
tsserver = {
format = false,
},
}
function LSP.can_client_format(client_name)
if LSP.Servers[client_name] == true then
return true
end
if LSP.Servers[client_name] then
return (LSP.Servers[client_name].format == true)
end
return false
end