Compare commits
No commits in common. "49af40c918375325a3a480c1a92f548b6cee9c98" and "0d04a9812c8692e97b89ae1dcd13a87a586d540c" have entirely different histories.
49af40c918
...
0d04a9812c
@ -34,19 +34,8 @@ function build.set_dir(dirname)
|
|||||||
local compile_commands = current_dir .. '/compile_commands.json'
|
local compile_commands = current_dir .. '/compile_commands.json'
|
||||||
local output = vim.fn.systemlist(
|
local output = vim.fn.systemlist(
|
||||||
'compdb -p ' .. build.dir .. ' list > ' .. compile_commands)
|
'compdb -p ' .. build.dir .. ' list > ' .. compile_commands)
|
||||||
|
if table.maxn(output) > 0 then
|
||||||
-- Remove any lines containing a compdb warning
|
echo(vim.fn.join(output, '\n'), 'Error')
|
||||||
local error = {}
|
|
||||||
local warning = 'WARNING:compdb'
|
|
||||||
for _, line in ipairs(output) do
|
|
||||||
if string.sub(line, 1, #warning) ~= warning then
|
|
||||||
table.insert(error, line)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Display the error message if there was one
|
|
||||||
if table.maxn(error) > 0 then
|
|
||||||
echo(vim.fn.join(error, '\n'), 'Error')
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -36,8 +36,6 @@ return {
|
|||||||
vim.keymap.set('n', '<leader>gg', ':Telescope live_grep<CR>', opts)
|
vim.keymap.set('n', '<leader>gg', ':Telescope live_grep<CR>', opts)
|
||||||
vim.keymap.set('n', '<leader>gb', ':Telescope buffers<CR>', opts)
|
vim.keymap.set('n', '<leader>gb', ':Telescope buffers<CR>', opts)
|
||||||
vim.keymap.set('n', '<leader>gh', ':Telescope help_tags<CR>', opts)
|
vim.keymap.set('n', '<leader>gh', ':Telescope help_tags<CR>', opts)
|
||||||
vim.keymap.set('n', '<leader>gs', ':Telescope lsp_document_symbols<CR>', opts)
|
|
||||||
vim.keymap.set('n', '<leader>gr', ':Telescope lsp_references<CR>', opts)
|
|
||||||
|
|
||||||
require('easypick').setup({
|
require('easypick').setup({
|
||||||
pickers = { },
|
pickers = { },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user