From 2e99a2101082a6ab8292699fdbe51a01dcc396eb Mon Sep 17 00:00:00 2001 From: Frothy <76622149+FrothyMarrow@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:05:56 -0400 Subject: [PATCH] ui/smartcolumn: change `custom_colorcolumn` type to expected type string --- configuration.nix | 8 ++++---- modules/plugins/ui/smartcolumn/smartcolumn.nix | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/configuration.nix b/configuration.nix index 1d81459..b0e6132 100644 --- a/configuration.nix +++ b/configuration.nix @@ -222,10 +222,10 @@ inputs: let enable = true; setupOpts.custom_colorcolumn = { # this is a freeform module, it's `buftype = int;` for configuring column position - nix = 110; - ruby = 120; - java = 130; - go = [90 130]; + nix = "110"; + ruby = "120"; + java = "130"; + go = ["90" "130"]; }; }; }; diff --git a/modules/plugins/ui/smartcolumn/smartcolumn.nix b/modules/plugins/ui/smartcolumn/smartcolumn.nix index 37d7a94..48bf549 100644 --- a/modules/plugins/ui/smartcolumn/smartcolumn.nix +++ b/modules/plugins/ui/smartcolumn/smartcolumn.nix @@ -31,15 +31,15 @@ in { custom_colorcolumn = mkOption { description = "The position at which smart column should be displayed for each individual buffer type"; - type = attrsOf (either int (listOf int)); + type = attrsOf (either str (listOf str)); default = {}; example = literalExpression '' vim.ui.smartcolumn.setupOpts.custom_colorcolumn = { - nix = 110; - ruby = 120; - java = 130; - go = [90 130]; + nix = "110"; + ruby = "120"; + java = "130"; + go = ["90" "130"]; }; ''; };