-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathconfig.lua
More file actions
46 lines (43 loc) · 1.23 KB
/
config.lua
File metadata and controls
46 lines (43 loc) · 1.23 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
local M = {}
M.values = {}
M.database = {}
M.ram_opts = {}
M.sarif = {}
function M.setup(opts)
-- user configurable options
local defaults = {
additional_packs = {},
max_ram = nil,
job_timeout = 15000,
format_on_save = false,
-- Command returning list of CodeQL databases (eg: { "gh", "qldb", "list" })
find_databases_cmd = nil,
-- Telescope entry maker for the list of databases
database_list_entry_maker = nil,
-- Telescope previewer for the list of databases
database_list_previewer = nil,
-- Telescope options
telescope_opts = {},
results = {
max_paths = 4,
max_path_depth = nil,
},
panel = {
width = 50,
pos = "botright",
show_filename = true,
long_filename = false,
group_by = "sink",
context_lines = 5,
alignment = "left",
},
mappings = {
run_query = { modes = { "n" }, lhs = "<space>qr", desc = "run query" },
quick_eval = { modes = { "x", "n" }, lhs = "<space>qe", desc = "quick evaluate" },
quick_eval_predicate = { modes = { "n" }, lhs = "<space>qp", desc = "quick evaluate enclosing predicate" },
},
}
local util = require "codeql.util"
M.values = util.tableMerge(defaults, opts)
end
return M