From 8c4d7a3673a12c06c008abca88b78130e791c574 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 14 Oct 2023 14:52:55 +0300 Subject: [PATCH] ui/noice: disable messages by default fixes completion sources showing up every single time --- modules/ui/noice/config.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/ui/noice/config.nix b/modules/ui/noice/config.nix index d12ebf04..c60fb38f 100644 --- a/modules/ui/noice/config.nix +++ b/modules/ui/noice/config.nix @@ -32,7 +32,7 @@ in { command_palette = true, -- position the cmdline and popupmenu together long_message_to_split = true, -- long messages will be sent to a split inc_rename = false, -- enables an input dialog for inc-rename.nvim - lsp_doc_border = ${boolToString (config.vim.ui.borders.enable)}, -- add a border to hover docs and signature help + lsp_doc_border = ${boolToString config.vim.ui.borders.enable}, -- add a border to hover docs and signature help }, format = { @@ -45,6 +45,17 @@ in { input = {}, }, + messages = { + -- NOTE: If you enable messages, then the cmdline is enabled automatically. + -- This is a current Neovim limitation. + enabled = false, -- enables the Noice messages UI + view = "notify", -- default view for messages + view_error = "notify", -- view for errors + view_warn = "notify", -- view for warnings + view_history = "messages", -- view for :messages + view_search = "virtualtext", -- view for search count messages. Set to `false` to disable + }, + -- Hide written messages routes = { {