From 131fc5509e557f5c55075efba814cc0992e26ff2 Mon Sep 17 00:00:00 2001 From: Nikita Avgustanov Date: Fri, 19 Dec 2025 11:42:38 +0400 Subject: [PATCH] added condition for minuet.ai to disable it if there's no ollama installed --- lua/custom/plugins/llm.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/custom/plugins/llm.lua b/lua/custom/plugins/llm.lua index 916fc66c..5d53474d 100644 --- a/lua/custom/plugins/llm.lua +++ b/lua/custom/plugins/llm.lua @@ -1,6 +1,17 @@ return { { 'milanglacier/minuet-ai.nvim', + + cond = function() + if vim.fn.executable 'ollama' ~= 1 then + vim.schedule(function() + vim.notify('minuet-ai.nvim disabled: ollama not found', vim.log.levels.INFO) + end) + return false + end + return true + end, + config = function() require('minuet').setup { virtualtext = {