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:
Harrison (Harry) Cramer
2024-07-04 18:55:31 -07:00
committed by GitHub
parent 3c9d95d25b
commit dc70c97810
6 changed files with 69 additions and 9 deletions

View File

@@ -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