possibility of dedicated sign-type columns in signcolumn?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • dot

    ☕️ My Dot Files (by folke)

  • -- @ref https://github.com/folke/dot/blob/master/config/nvim/lua/util/status.lua (modified) local M = {} _G.Status = M ---@return {name:string, text:string, texthl:string}[] function M.get_signs() local buf = vim.api.nvim_win_get_buf(vim.g.statusline_winid) return vim.tbl_map(function(sign) return vim.fn.sign_getdefined(sign.name)[1] end, vim.fn.sign_getplaced(buf, { group = "*", lnum = vim.v.lnum })[1].signs) end function M.column() local diagnostic_sign, git_sign for _, s in ipairs(M.get_signs()) do if s.name:find("GitSign") then git_sign = s elseif s.name:find("Diagnostic") then diagnostic_sign = s end end local nu = " " local number = vim.api.nvim_win_get_option(vim.g.statusline_winid, "number") if number and vim.wo.relativenumber and vim.v.virtnum == 0 then nu = vim.v.relnum == 0 and vim.v.lnum or vim.v.relnum end local git_column = git_sign and ("%#" .. git_sign.texthl .. "#" .. git_sign.text .. "%*") or " " -- two spaces necessary to avoid jumping local diagnostic_column = diagnostic_sign and ("%#" .. diagnostic_sign.texthl .. "#" .. diagnostic_sign.text .. "%*") or " " -- right-aligned number column (thanks to the %=) -- %= @ref :h statusline "Separation point between alignment sections. Each section will be separated by an equal number of spaces" local number_column = "%=" .. nu local fold_column = "%C" local columns = { git_column, diagnostic_column, number_column, " ", fold_column, " ", } return table.concat(columns, "") end if vim.fn.has("nvim-0.9.0") == 1 then vim.opt.statuscolumn = [[%!v:lua.Status.column()]] end return M

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts