Feat: Add Color Configuration (#82)
This MR adds the ability to customize colors for the discussion tree
This commit is contained in:
committed by
GitHub
parent
6b7e67b325
commit
9742b5b229
@@ -1,6 +1,12 @@
|
||||
local Job = require("plenary.job")
|
||||
local M = {}
|
||||
|
||||
M.get_colors_for_group = function(group)
|
||||
local normal_fg = vim.fn.synIDattr(vim.fn.hlID(group), "fg")
|
||||
local normal_bg = vim.fn.synIDattr(vim.fn.hlID(group), "bg")
|
||||
return { fg = normal_fg, bg = normal_bg }
|
||||
end
|
||||
|
||||
M.get_current_line_number = function()
|
||||
return vim.api.nvim_call_function("line", { "." })
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user