lazy clangd
This commit is contained in:
parent
f6d5957079
commit
b317778ed1
|
@ -3,7 +3,7 @@ M.clang_filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' }
|
||||||
|
|
||||||
local lspconfig = require 'lspconfig'
|
local lspconfig = require 'lspconfig'
|
||||||
|
|
||||||
local function find_compile_commands()
|
function M.find_compile_commands()
|
||||||
local results = vim.fn.systemlist { 'fd', '-u', '-t', 'f', 'compile_commands.json' }
|
local results = vim.fn.systemlist { 'fd', '-u', '-t', 'f', 'compile_commands.json' }
|
||||||
if vim.tbl_isempty(results) then
|
if vim.tbl_isempty(results) then
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue