From 1912ef93697d94bd8ddeaede9093589a85025bc1 Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Thu, 25 Dec 2025 03:10:16 -0500 Subject: fix(tblgen_lsp_server): also search build dir for db #4260 --- lsp/tblgen_lsp_server.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lsp/tblgen_lsp_server.lua') 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 -- cgit v1.2.3-70-g09d2