Skip to content

Commit

Permalink
feat: set title from config (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvim-tech authored Jul 1, 2024
1 parent ed2e154 commit 7a9aeb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/rip-substitute/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local notify = require("rip-substitute.utils").notify
---@class ripSubstituteConfig
local defaultConfig = {
popupWin = {
title = " rip-substitute",
border = "single",
matchCountHlGroup = "Keyword",
noMatchHlGroup = "ErrorMsg",
Expand Down
2 changes: 1 addition & 1 deletion lua/rip-substitute/popup-win.lua
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function M.openSubstitutionPopup(searchPrefill)
local minWidth = vim.api.nvim_strwidth(keymapHint) + 11 + 4

local title = state.range and ("Range: L%d – L%d"):format(state.range.start, state.range.end_)
or " rip-substitute"
or config.popupWin.title

-- CREATE WINDOW
local offsetScrollbar = 2
Expand Down

0 comments on commit 7a9aeb8

Please sign in to comment.