diff --git a/users/modules/programs/nvf/input.nix b/users/modules/programs/nvf/input.nix index 6732ef4..dcd5bf8 100644 --- a/users/modules/programs/nvf/input.nix +++ b/users/modules/programs/nvf/input.nix @@ -1,4 +1,4 @@ -{ +{lib, ...}: { programs.nvf.settings.vim = { autopairs = { nvim-autopairs.enable = true; @@ -19,9 +19,22 @@ # - Scroll docs up [blink.cmp]: }; setupOpts = { + # Disable completion for markdown + enabled = + lib.generators.mkLuaInline + /* + lua + */ + '' + function() + return not vim.tbl_contains({"markdown"}, vim.bo.filetype) + and vim.bo.buftype ~= "prompt" + and vim.b.completion ~= false + end + ''; cmdline.sources = null; # use default source list sources.providers.cmdline.module = "blink.cmp.sources.cmdline"; - menu.auto_show = false; + # menu.auto_show = false; completion.documentation.auto_show_delay_ms = 0; signature.enabled = true; };