From d7fc84c6f3b58a4e5627aca68084eb8a394574fb Mon Sep 17 00:00:00 2001 From: Alvaro Muñoz Date: Thu, 23 Apr 2020 12:22:24 +0200 Subject: codeqlls.lua: change filetype to "ql" close #204 --- lua/nvim_lsp/codeqlls.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lua') diff --git a/lua/nvim_lsp/codeqlls.lua b/lua/nvim_lsp/codeqlls.lua index 72415684..827803b1 100644 --- a/lua/nvim_lsp/codeqlls.lua +++ b/lua/nvim_lsp/codeqlls.lua @@ -8,19 +8,19 @@ local root_pattern = util.root_pattern("qlpack.yml") configs[server_name] = { default_config = { cmd = {"codeql", "execute", "language-server", "--check-errors", "ON_CHANGE", "-q"}; - filetypes = {'codeql'}; + filetypes = {'ql'}; root_dir = function(fname) return root_pattern("qlpack.yml") or util.path.dirname(fname) end; log_level = vim.lsp.protocol.MessageType.Warning; before_init = function(initialize_params, config) initialize_params['workspaceFolders'] = {{ - name = 'workspace', - uri = initialize_params['rootUri'] + name = 'workspace', + uri = initialize_params['rootUri'] }} end; settings = { - ["search_path"] = {} + search_path = vim.empty_dict() }; }; docs = { @@ -45,6 +45,8 @@ https://github.com/github/codeql-cli-binaries search_path = search_path..vim.fn.expand(path)..":" end config.cmd = {"codeql", "execute", "language-server", "--check-errors", "ON_CHANGE", "-q", search_path} + else + config.cmd = {"codeql", "execute", "language-server", "--check-errors", "ON_CHANGE", "-q"} end end; } -- cgit v1.2.3-70-g09d2