From 3489543ea1943da7e1b04a78151a32d6dd91c0b0 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 3 Feb 2025 18:07:45 +0100 Subject: common/nixvim: use smartcolumn plugin instead of colorcolumn --- common/nixvim.nix | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/common/nixvim.nix b/common/nixvim.nix index a935c67..3f55c0f 100644 --- a/common/nixvim.nix +++ b/common/nixvim.nix @@ -22,7 +22,6 @@ inputs: backup = true; # Use `//` at the end to store the absolute file name backupdir.__raw = "vim.fn.stdpath('data') .. '/backup//'"; - colorcolumn = "80"; completeopt = [ "menu" "menuone" @@ -531,6 +530,38 @@ inputs: # TODO: maybe #refactoring.enable = true; + smartcolumn = { + enable = true; + settings = { + colorcolumn = "80"; + custom_colorcolumn = { + cpp = [ + "100" + "140" + ]; + java = [ + "100" + "140" + ]; + nix = [ + "100" + "120" + ]; + rust = [ + "80" + "100" + ]; + }; + disabled_filetypes = [ + "checkhealth" + "help" + "lspinfo" + "noice" + "Trouble" + ]; + }; + }; + spider = { enable = true; keymaps.motions = { -- cgit v1.2.3