Compare commits
No commits in common. "55f5da7db75043e186a90831cfda41bf5a0cb07b" and "2cd7d34375a20b8b6527a1730c38a026c29de13a" have entirely different histories.
55f5da7db7
...
2cd7d34375
@ -33,7 +33,6 @@ local kanagawa = {
|
|||||||
vim.cmd.highlight('MsgSeparator', 'guifg=' .. dragon.ui.bg_m3, 'guibg=' .. dragon.ui.bg_m3)
|
vim.cmd.highlight('MsgSeparator', 'guifg=' .. dragon.ui.bg_m3, 'guibg=' .. dragon.ui.bg_m3)
|
||||||
vim.cmd.highligh('TreesitterContext', 'guibg=' .. dragon.ui.bg_gutter)
|
vim.cmd.highligh('TreesitterContext', 'guibg=' .. dragon.ui.bg_gutter)
|
||||||
vim.cmd.highlight('link zshTodo Comment')
|
vim.cmd.highlight('link zshTodo Comment')
|
||||||
vim.cmd.highlight('link ps1CommentTodo Comment')
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,10 +21,9 @@ function build.set_dir(dirname)
|
|||||||
end
|
end
|
||||||
|
|
||||||
build.dir = build_dir
|
build.dir = build_dir
|
||||||
local compile_commands = current_dir .. '/compile_commands.json'
|
|
||||||
|
|
||||||
if vim.fn.executable('compdb') == 1 then
|
|
||||||
echo('Processing compile_commands.json with compdb ...', 'DiagnosticInfo')
|
echo('Processing compile_commands.json with compdb ...', 'DiagnosticInfo')
|
||||||
|
local compile_commands = current_dir .. '/compile_commands.json'
|
||||||
-- Post-process compile_commands.json with compdb as an async job to avoid
|
-- Post-process compile_commands.json with compdb as an async job to avoid
|
||||||
-- blocking the user interface
|
-- blocking the user interface
|
||||||
vim.fn.jobstart(
|
vim.fn.jobstart(
|
||||||
@ -61,18 +60,6 @@ function build.set_dir(dirname)
|
|||||||
stderr_buffered = true,
|
stderr_buffered = true,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
else
|
|
||||||
vim.uv.fs_copyfile(build_dir .. '/compile_commands.json', compile_commands, nil,
|
|
||||||
function()
|
|
||||||
-- This is a callback so doesn't run on the main thread which causes
|
|
||||||
-- issues for running commands, so schedule that on the main thread.
|
|
||||||
vim.schedule(function()
|
|
||||||
vim.cmd('LspRestart')
|
|
||||||
echo('Build directory selected: ' .. dirname, 'DiagnosticInfo')
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function build.select_dir(callback)
|
function build.select_dir(callback)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user