From 53e5ec64439ff07fcf83e7fd1bb356cdb34750d6 Mon Sep 17 00:00:00 2001 From: ttak0422 Date: Wed, 31 Jul 2024 02:10:50 +0900 Subject: [PATCH] wip --- fnl/statuscol.fnl | 7 ++----- lua/autogen/statuscol.lua | 7 ++----- main/after.nix | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/fnl/statuscol.fnl b/fnl/statuscol.fnl index 70209ce..2a1bffc 100644 --- a/fnl/statuscol.fnl +++ b/fnl/statuscol.fnl @@ -3,11 +3,8 @@ segments [{:text ["%s"] :maxwidth 2 :click "v:lua.ScSa"} {:text [M.builtin.lnumfunc] :click "v:lua.ScLa"} {:text [" " M.builtin.foldfunc " "] :click "v:lua.ScFa"}] - statuses [:NeotestPassed :NeotestFailed :NeotestRunning :NeotestSkipped]] - (M.setup {:setopt true :relculright false : segments}) - ;; WIP: signの背景色を手動設定 - (each [_ s (ipairs statuses)] - (vim.api.nvim_set_hl 0 s {:bg "#2a2a37"}))) + ft_ignore []] + (M.setup {:setopt true :relculright false : ft_ignore : segments})) ;; 行数表示 (set vim.o.number true) diff --git a/lua/autogen/statuscol.lua b/lua/autogen/statuscol.lua index b65e2f0..e953f61 100644 --- a/lua/autogen/statuscol.lua +++ b/lua/autogen/statuscol.lua @@ -2,11 +2,8 @@ do local M = setmetatable({builtin = require("statuscol.builtin")}, {__index = require("statuscol")}) local segments = {{text = {"%s"}, maxwidth = 2, click = "v:lua.ScSa"}, {text = {M.builtin.lnumfunc}, click = "v:lua.ScLa"}, {text = {" ", M.builtin.foldfunc, " "}, click = "v:lua.ScFa"}} - local statuses = {"NeotestPassed", "NeotestFailed", "NeotestRunning", "NeotestSkipped"} - M.setup({setopt = true, segments = segments, relculright = false}) - for _, s in ipairs(statuses) do - vim.api.nvim_set_hl(0, s, {bg = "#2a2a37"}) - end + local ft_ignore = {} + M.setup({setopt = true, ft_ignore = ft_ignore, segments = segments, relculright = false}) end vim.o.number = true vim.o.signcolumn = "yes" diff --git a/main/after.nix b/main/after.nix index f6dc655..a21587d 100644 --- a/main/after.nix +++ b/main/after.nix @@ -33,6 +33,24 @@ let language = "vim"; code = read ../vim/after/ddu-ff-filter.vim; }; + NeogitStatus = { + language = "vim"; + code = '' + setlocal foldcolumn=0 + ''; + }; + NeogitCommitView = { + language = "vim"; + code = '' + setlocal foldcolumn=0 + ''; + }; + NeogitDiffView = { + language = "vim"; + code = '' + setlocal foldcolumn=0 + ''; + }; }; in {