aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lsp/tblgen_lsp_server.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/lsp/tblgen_lsp_server.lua b/lsp/tblgen_lsp_server.lua
index 444bf46e..fff31965 100644
--- a/lsp/tblgen_lsp_server.lua
+++ b/lsp/tblgen_lsp_server.lua
@@ -8,10 +8,13 @@
local function get_command()
local cmd = { 'tblgen-lsp-server' }
- local files = vim.fs.find('tablegen_compile_commands.yml', { path = vim.fn.expand('%:p:h'), upward = true })
+ local files = vim.fs.find(
+ { 'tablegen_compile_commands.yml', 'build/tablegen_compile_commands.yml' },
+ { path = vim.fn.expand('%:p:h'), upward = true, type = 'file' }
+ )
if #files > 0 then
local file = files[1]
- table.insert(cmd, '--tablegen-compilation-database=' .. vim.fs.dirname(file) .. '/tablegen_compile_commands.yml')
+ table.insert(cmd, '--tablegen-compilation-database=' .. file)
end
return cmd