Browse Source

Made error detection and message platform agnostic

my-config
connorgmeean 3 years ago
committed by Alejandro
parent
commit
6abde88457
  1. 4
      lua/doom/modules/config/doom-neorg.lua
  2. 4
      lua/doom/modules/config/doom-treesitter.lua

4
lua/doom/modules/config/doom-neorg.lua

@ -44,8 +44,8 @@ return function()
local cc = select_executable(compilers)
local version = vim.fn.systemlist(cc .. (cc == "cl" and "" or " --version"))[1]
if (version:match('Apple clang')) then
log.warn('doom-neorg: clang has poor compatibility compiling treesitter parsers. We recommend using gcc on MacOS, see issue #246 for details.')
if (version:match('clang')) then
log.warn('doom-neorg: clang has poor compatibility compiling treesitter parsers. We recommend using gcc instead, see issue #246 for details.')
end
end, 1000)
end

4
lua/doom/modules/config/doom-treesitter.lua

@ -89,8 +89,8 @@ return function()
local cc = select_executable(compilers)
local version = vim.fn.systemlist(cc .. (cc == "cl" and "" or " --version"))[1]
if (version:match('Apple clang')) then
log.warn('doom-treesitter: clang has poor compatibility compiling treesitter parsers. We recommend using gcc on MacOS, see issue #246 for details.')
if (version:match('clang')) then
log.warn('doom-treesitter: clang has poor compatibility compiling treesitter parsers. We recommend using gcc, see issue #246 for details.')
end
end, 1000)
end

Loading…
Cancel
Save