Skip to content

Commit 1b24dc6

Browse files
authored
feat(main): don't override BqfSign if already set by the user (kevinhwang91#146)
1 parent ee9c8c8 commit 1b24dc6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/bqf/qfwin/sign.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ local function init()
150150
sgroup = 'BqfSignGroup'
151151
sname = 'BqfSign'
152152
cmd('hi default BqfSign ctermfg=14 guifg=Cyan')
153-
fn.sign_define('BqfSign', {text = ' ^', texthl = 'BqfSign'})
153+
if vim.tbl_isempty(vim.fn.sign_getdefined('BqfSign')) then
154+
fn.sign_define('BqfSign', {text = ' ^', texthl = 'BqfSign'})
155+
end
154156
end
155157

156158
init()

0 commit comments

Comments
 (0)