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 ''
require("smartcolumn").setup({
colorcolumn = "${toString cfg.showColumnAt}",
disabled_filetypes = { ${concatStringsSep ", " (map (x: "\"" + x + "\"") cfg.disabledFiletypes)} },
-- { "help", "text", "markdown", "NvimTree", "alpha"},
disabled_filetypes = { ${concatStringsSep ", " (map (x: "\"" + x + "\"") cfg.disabledFiletypes)} },
custom_colorcolumn = {
-- TODO: use cfg.languages.<language>.columnAt when it's fixed to dynamically define per-language length
ruby = "120",

View file

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