Skip to content

Commit

Permalink
Nvim: lazy.nvim: Fix cond usage
Browse files Browse the repository at this point in the history
  • Loading branch information
polyzen committed Feb 11, 2023
1 parent fa5b660 commit 5449624
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions base/.config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ require('lazy').setup({
{
'wfxr/minimap.vim',
cond = function()
vim.fn.executable('code-minimap')
if vim.fn.executable('code-minimap') == 0 then
return false
end
end,
},
'markwu/vim-mrufiles',
Expand Down Expand Up @@ -381,20 +383,26 @@ require('lazy').setup({
{
'p00f/clangd_extensions.nvim',
cond = function()
vim.fn.executable('clangd')
if vim.fn.executable('clangd') == 0 then
return false
end
end,
dependencies = { 'neovim/nvim-lspconfig' },
},
{
'folke/neodev.nvim',
cond = function()
vim.fn.executable('lua-language-server')
if vim.fn.executable('lua-language-server') == 0 then
return false
end
end,
},
{
'simrat39/rust-tools.nvim',
cond = function()
vim.fn.executable('rust-analyzer')
if vim.fn.executable('rust-analyzer') == 0 then
return false
end
end,
dependencies = {
'neovim/nvim-lspconfig',
Expand All @@ -404,7 +412,9 @@ require('lazy').setup({
{
'jose-elias-alvarez/typescript.nvim',
cond = function()
vim.fn.executable('typescript-language-server')
if vim.fn.executable('typescript-language-server') == 0 then
return false
end
end,
dependencies = { 'neovim/nvim-lspconfig' },
},
Expand Down

0 comments on commit 5449624

Please sign in to comment.