-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.lua
More file actions
52 lines (49 loc) · 1.02 KB
/
config.lua
File metadata and controls
52 lines (49 loc) · 1.02 KB
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
local M = {
jdtls_name = "jdtls",
options = {
show_guides = true,
auto_close = false,
width = 40,
show_numbers = false,
show_relative_numbers = false,
preview_bg_highlight = "Pmenu",
winblend = 0,
fold_markers = { "", "" },
position = "right",
wrap = false,
hierarchical_view = true,
keymaps = {
close = "q",
toggle_fold = "o",
},
symbols = {
icons = {},
},
},
}
M.setup = function(config)
if config then
local new_config = vim.tbl_deep_extend("force", M, config)
for key, value in pairs(new_config) do
M[key] = value
end
end
end
function M.has_numbers()
return M.options.show_numbers or M.options.show_relative_numbers
end
function M.show_help()
print("Current keymaps:")
print(vim.inspect(M.options.keymaps))
end
function M.get_split_command()
if M.options.position == "left" then
return "topleft vs"
else
return "botright vs"
end
end
function M.get_window_width()
return M.options.width
end
return M