aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-12-25 03:10:16 -0500
committerGitHub <noreply@github.com>2025-12-25 03:10:16 -0500
commit1912ef93697d94bd8ddeaede9093589a85025bc1 (patch)
tree505c4cdc58cee358fdbf4c7149fb4410aa4e8430
parentfix(roslyn_ls): guess root_dir for decompiled code #4257 (diff)
downloadnvim-lspconfig-1912ef93697d94bd8ddeaede9093589a85025bc1.tar
nvim-lspconfig-1912ef93697d94bd8ddeaede9093589a85025bc1.tar.gz
nvim-lspconfig-1912ef93697d94bd8ddeaede9093589a85025bc1.tar.bz2
nvim-lspconfig-1912ef93697d94bd8ddeaede9093589a85025bc1.tar.lz
nvim-lspconfig-1912ef93697d94bd8ddeaede9093589a85025bc1.tar.xz
nvim-lspconfig-1912ef93697d94bd8ddeaede9093589a85025bc1.tar.zst
nvim-lspconfig-1912ef93697d94bd8ddeaede9093589a85025bc1.zip
fix(tblgen_lsp_server): also search build dir for db #4260
-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