From 0667f1f9361b75b4fc76136a94699ce39774468f Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 25 Jul 2023 22:16:20 +0300 Subject: [PATCH] dev: add missing hover window borders via noice.nvim --- configuration.nix | 1 + modules/ui/borders/borders.nix | 8 ++++++-- modules/ui/noice/config.nix | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index a38a2da..ce9b442 100644 --- a/configuration.nix +++ b/configuration.nix @@ -185,6 +185,7 @@ inputs: let }; vim.ui = { + borders.enable = true; noice.enable = true; colorizer.enable = true; modes-nvim.enable = false; # the theme looks terrible with catppuccin diff --git a/modules/ui/borders/borders.nix b/modules/ui/borders/borders.nix index b11d2cd..f1fbd3c 100644 --- a/modules/ui/borders/borders.nix +++ b/modules/ui/borders/borders.nix @@ -1,8 +1,12 @@ {lib, ...}: let - inherit (lib) mkEnableOption mkOption; + inherit (lib) mkEnableOption mkOption types; in { options.vim.ui.borders = { - enable = mkEnableOption "visible borders for most windows"; + enable = mkOption { + type = types.bool; + default = true; + description = "visible borders for most windows"; + }; # TODO: make per-plugin borders configurable }; diff --git a/modules/ui/noice/config.nix b/modules/ui/noice/config.nix index 705256b..a2e3008 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 = false, -- add a border to hover docs and signature help + lsp_doc_border = ${builtins.toString (config.vim.ui.borders.enable)}, -- add a border to hover docs and signature help }, format = {