Miscellaneous Bug Fixes (#423)

fix: Show non-resolvable notes in winbar (#417)
fix: add more emojis and make emoji picker configurable (#414)
fix: comment creation should not be possible for renamed and moved files (#416)
fix: color highlight groups are invalid (#421)
fix: plugin failing to build on Windows (#419)

---------

Co-authored-by: Jakub F. Bortlík <jakub.bortlik@proton.me>
This commit is contained in:
Harrison (Harry) Cramer
2024-11-12 11:01:28 -05:00
committed by GitHub
parent 30daecfb60
commit be027331e1
17 changed files with 221 additions and 11079 deletions

View File

@@ -10,8 +10,10 @@ local M = {
}
M.init = function()
local bin_path = state.settings.bin_path
local emoji_path = bin_path
local root_path = state.settings.root_path
local emoji_path = root_path
.. state.settings.file_separator
.. "cmd"
.. state.settings.file_separator
.. "config"
.. state.settings.file_separator
@@ -132,6 +134,9 @@ M.pick_emoji = function(options, cb)
vim.ui.select(options, {
prompt = "Choose emoji",
format_item = function(val)
if type(state.settings.emojis.formatter) == "function" then
return state.settings.emojis.formatter(val)
end
return string.format("%s %s", val.moji, val.name)
end,
}, function(choice)