From 47b93106ed6a0bbc67efaae535c33c555f29f1a7 Mon Sep 17 00:00:00 2001 From: EsVagy42 Date: Wed, 11 Mar 2026 22:44:20 +0100 Subject: [PATCH] Added noice config --- config/default.nix | 1 + config/mini.nix | 1 - config/noice.nix | 20 ++++++++++++++++++++ config/nvim-notify.nix | 3 +++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 config/nvim-notify.nix diff --git a/config/default.nix b/config/default.nix index 81e0077..8f64e89 100644 --- a/config/default.nix +++ b/config/default.nix @@ -21,6 +21,7 @@ ./noice.nix ./catppuccin.nix ./trouble.nix + ./nvim-notify.nix ]; opts = { number = true; diff --git a/config/mini.nix b/config/mini.nix index 53a5a9f..006995e 100644 --- a/config/mini.nix +++ b/config/mini.nix @@ -66,7 +66,6 @@ try_as_border = true; }; }; - notify = { }; starter = { }; statusline = { }; tabline = { }; diff --git a/config/noice.nix b/config/noice.nix index f783828..7e5f486 100644 --- a/config/noice.nix +++ b/config/noice.nix @@ -1,5 +1,25 @@ +{ lib, ... }: { plugins.noice = { enable = true; + settings = lib.nixvim.mkRaw '' + { + lsp = { + -- override markdown rendering so that **cmp** and other plugins use **Treesitter** + override = { + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, + ["vim.lsp.util.stylize_markdown"] = true, + ["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp + }, + }, + -- you can enable a preset for easier configuration + presets = { + 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 = true, -- add a border to hover docs and signature help + }, + } + ''; }; } diff --git a/config/nvim-notify.nix b/config/nvim-notify.nix new file mode 100644 index 0000000..d608523 --- /dev/null +++ b/config/nvim-notify.nix @@ -0,0 +1,3 @@ +{ + plugins.notify.enable = true; +}