Release (#327)
Fix: Only set autocommands for select popups (#315) Docs: Small improvements to README and docs Feat: Add branch info to choose_merge_request menu (#318) Chore: Add heart emoji (#323) Feat: Add highlight for mentions (#324) Fix: Do Not Error w/Out Buffer Content (#325) This is a MINOR release.
This commit is contained in:
committed by
GitHub
parent
3c9d95d25b
commit
dc70c97810
@@ -5,6 +5,7 @@ local colors = state.settings.colors
|
||||
local discussion = colors.discussion_tree
|
||||
|
||||
vim.api.nvim_set_hl(0, "GitlabUsername", u.get_colors_for_group(discussion.username))
|
||||
vim.api.nvim_set_hl(0, "GitlabMention", u.get_colors_for_group(discussion.mention))
|
||||
vim.api.nvim_set_hl(0, "GitlabDate", u.get_colors_for_group(discussion.date))
|
||||
vim.api.nvim_set_hl(0, "GitlabChevron", u.get_colors_for_group(discussion.chevron))
|
||||
vim.api.nvim_set_hl(0, "GitlabDirectory", u.get_colors_for_group(discussion.directory))
|
||||
|
||||
@@ -74,8 +74,10 @@ M.settings = {
|
||||
opacity = 1.0,
|
||||
edit = nil,
|
||||
comment = nil,
|
||||
note = nil,
|
||||
help = nil,
|
||||
pipeline = nil,
|
||||
reply = nil,
|
||||
squash_message = nil,
|
||||
temp_registers = {},
|
||||
},
|
||||
@@ -89,9 +91,6 @@ M.settings = {
|
||||
edit_comment = "e",
|
||||
delete_comment = "dd",
|
||||
refresh_data = "a",
|
||||
open_in_browser = "b",
|
||||
copy_node_url = "u",
|
||||
publish_draft = "P",
|
||||
reply = "r",
|
||||
toggle_node = "t",
|
||||
add_emoji = "Ea",
|
||||
@@ -100,16 +99,19 @@ M.settings = {
|
||||
toggle_resolved_discussions = "R",
|
||||
toggle_unresolved_discussions = "U",
|
||||
keep_current_open = false,
|
||||
publish_draft = "P",
|
||||
toggle_resolved = "p",
|
||||
relative = "editor",
|
||||
position = "left",
|
||||
open_in_browser = "b",
|
||||
copy_node_url = "u",
|
||||
size = "20%",
|
||||
relative = "editor",
|
||||
resolved = "✓",
|
||||
unresolved = "-",
|
||||
tree_type = "simple",
|
||||
toggle_tree_type = "i",
|
||||
toggle_draft_mode = "D",
|
||||
draft_mode = false,
|
||||
toggle_draft_mode = "D",
|
||||
},
|
||||
create_mr = {
|
||||
target = nil,
|
||||
@@ -154,12 +156,12 @@ M.settings = {
|
||||
severity = vim.diagnostic.severity.INFO,
|
||||
virtual_text = false,
|
||||
use_diagnostic_signs = true,
|
||||
priority = 100,
|
||||
icons = {
|
||||
comment = "→|",
|
||||
range = " |",
|
||||
},
|
||||
skip_old_revision_discussion = false,
|
||||
priority = 100,
|
||||
},
|
||||
pipeline = {
|
||||
created = "",
|
||||
@@ -177,6 +179,7 @@ M.settings = {
|
||||
colors = {
|
||||
discussion_tree = {
|
||||
username = "Keyword",
|
||||
mention = "WarningMsg",
|
||||
date = "Comment",
|
||||
chevron = "DiffviewNonText",
|
||||
directory = "Directory",
|
||||
|
||||
@@ -354,6 +354,9 @@ M.split_path = function(path)
|
||||
end
|
||||
|
||||
M.get_buffer_text = function(bufnr)
|
||||
if not vim.api.nvim_buf_is_valid(bufnr) then
|
||||
return ""
|
||||
end
|
||||
local lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false)
|
||||
local text = table.concat(lines, "\n")
|
||||
return text
|
||||
@@ -374,7 +377,6 @@ M.string_to_bool = function(str)
|
||||
elseif str == "false" or str == "False" or str == "FALSE" then
|
||||
return false
|
||||
end
|
||||
M.notify("Not a valid boolean value `" .. str .. "`. Defaulting to `false`", vim.log.levels.WARN)
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user