diff --git a/lua/plugins/nvim-cmp.lua b/lua/plugins/nvim-cmp.lua index 71e6c6d..9b91500 100644 --- a/lua/plugins/nvim-cmp.lua +++ b/lua/plugins/nvim-cmp.lua @@ -12,6 +12,12 @@ return { -- Autocompletion if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then return end + + -- Compatibility check for *BSD/Linux + if vim.fn.executable 'gmake' then + return 'gmake install_jsregexp' + end + return 'make install_jsregexp' end)(), dependencies = {