dev(smartcolumn): try to use submodules properly?

This commit is contained in:
NotAShelf 2023-04-11 13:49:48 +03:00
parent 459f542980
commit 601d2ea6ed
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
2 changed files with 3 additions and 3 deletions

View file

@ -16,8 +16,8 @@ in {
vim.luaConfigRC.smartcolumn = nvim.dag.entryAnywhere '' vim.luaConfigRC.smartcolumn = nvim.dag.entryAnywhere ''
require("smartcolumn").setup({ require("smartcolumn").setup({
colorcolumn = "${toString cfg.showColumnAt}", colorcolumn = "${toString cfg.showColumnAt}",
disabled_filetypes = { ${concatStringsSep ", " (map (x: "\"" + x + "\"") cfg.disabledFiletypes)} },
-- { "help", "text", "markdown", "NvimTree", "alpha"}, -- { "help", "text", "markdown", "NvimTree", "alpha"},
disabled_filetypes = { ${concatStringsSep ", " (map (x: "\"" + x + "\"") cfg.disabledFiletypes)} },
custom_colorcolumn = { custom_colorcolumn = {
-- TODO: use cfg.languages.<language>.columnAt when it's fixed to dynamically define per-language length -- TODO: use cfg.languages.<language>.columnAt when it's fixed to dynamically define per-language length
ruby = "120", ruby = "120",

View file

@ -26,14 +26,14 @@ in {
default = ["help" "text" "markdown" "NvimTree" "alpha"]; default = ["help" "text" "markdown" "NvimTree" "alpha"];
description = "The filetypes smartcolumn will be disabled for."; description = "The filetypes smartcolumn will be disabled for.";
}; };
/* /*
languages = mkOption { languages = mkOption {
default = {}; default = {};
description = "Language specific configuration."; description = "Language specific configuration.";
type = with types; type = with types;
attrsOf (submodule { attrsOf (submodule {
options = attrsOf (submodule langOptions); options = languageOpts;
}); });
}; };
*/ */