From 911ea860fd6d32a93cc599c5bfd081d0e9ea05b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 4 Jan 2024 19:03:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20added=20status-column?= =?UTF-8?q?=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lua/plugins/extras/ui/status-column.lua | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .config/nvim/lua/plugins/extras/ui/status-column.lua diff --git a/.config/nvim/lua/plugins/extras/ui/status-column.lua b/.config/nvim/lua/plugins/extras/ui/status-column.lua new file mode 100644 index 00000000..a716c305 --- /dev/null +++ b/.config/nvim/lua/plugins/extras/ui/status-column.lua @@ -0,0 +1,39 @@ +return { + { + + "luukvbaal/statuscol.nvim", + event = { "LazyFile" }, + opts = function() + local builtin = require("statuscol.builtin") + return { + ft_ignore = { "neo-tree", "neo-tree-popup", "alpha", "lazy", "mason", "dashboard" }, + segments = { + { text = { builtin.lnumfunc }, click = "v:lua.ScLa" }, + { + sign = { name = { "Diagnostic*" }, text = { ".*" }, maxwidth = 1, colwidth = 1, auto = true }, + click = "v:lua.ScSa", + }, + { text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" }, + }, + } + end, + config = function(_, opts) + require("statuscol").setup(opts) + end, + }, + { + "lewis6991/gitsigns.nvim", + opts = { + signs = { + add = { text = "┃" }, + change = { text = "┃" }, + delete = { text = "󱈸" }, + topdelete = { text = "󱈸" }, + changedelete = { text = "┃" }, + untracked = { text = "┇" }, + }, + signcolumn = true, + numhl = true, + }, + }, +}