mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-11-13 20:43:49 +00:00
use choco installation, native make, mingw and unzip configuration
This commit is contained in:
parent
4673abea85
commit
0d927e25ae
@ -21,7 +21,7 @@ end
|
|||||||
|
|
||||||
local check_external_reqs = function()
|
local check_external_reqs = function()
|
||||||
-- Basic utils: `git`, `make`, `unzip`
|
-- Basic utils: `git`, `make`, `unzip`
|
||||||
for _, exe in ipairs { 'git', 'cmake', 'rg' } do
|
for _, exe in ipairs { 'git', 'make', 'unzip', 'rg' } do
|
||||||
local is_executable = vim.fn.executable(exe) == 1
|
local is_executable = vim.fn.executable(exe) == 1
|
||||||
if is_executable then
|
if is_executable then
|
||||||
vim.health.ok(string.format("Found executable: '%s'", exe))
|
vim.health.ok(string.format("Found executable: '%s'", exe))
|
||||||
|
@ -10,10 +10,10 @@ return {
|
|||||||
-- Build Step is needed for regex support in snippets
|
-- Build Step is needed for regex support in snippets
|
||||||
-- This step is not supported in many windows environments
|
-- This step is not supported in many windows environments
|
||||||
-- Remove the below condition to re-enable on windows
|
-- Remove the below condition to re-enable on windows
|
||||||
if vim.fn.has 'win32' == 1 or vim.fn.executable 'cmake' == 0 then
|
if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
return 'cmake install_jsregexp'
|
return 'make install_jsregexp'
|
||||||
end)(),
|
end)(),
|
||||||
},
|
},
|
||||||
'saadparwaiz1/cmp_luasnip',
|
'saadparwaiz1/cmp_luasnip',
|
||||||
|
@ -17,12 +17,12 @@ return {
|
|||||||
|
|
||||||
-- `build` is used to run some command when the plugin is installed/updated.
|
-- `build` is used to run some command when the plugin is installed/updated.
|
||||||
-- This is only run then, not every time Neovim starts up.
|
-- This is only run then, not every time Neovim starts up.
|
||||||
build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release; cmake --build build --config Release; cmake --install build --prefix build',
|
build = 'make',
|
||||||
|
|
||||||
-- `cond` is a condition used to determine whether this plugin should be
|
-- `cond` is a condition used to determine whether this plugin should be
|
||||||
-- installed and loaded.
|
-- installed and loaded.
|
||||||
cond = function()
|
cond = function()
|
||||||
return vim.fn.executable 'cmake' == 1
|
return vim.fn.executable 'make' == 1
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ 'nvim-telescope/telescope-ui-select.nvim' },
|
{ 'nvim-telescope/telescope-ui-select.nvim' },
|
||||||
|
Loading…
Reference in New Issue
Block a user