Add function to define Neovim signs
This commit is contained in:
parent
c2aafde0c8
commit
ecdb456815
@ -17,8 +17,16 @@ local function _run_jj_command(args)
|
|||||||
return output
|
return output
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Define Neovim signs for diff
|
||||||
|
local function _define_signs()
|
||||||
|
vim.fn.sign_define("JjDiffAdd", { text = "│", texthl = "JjDiffAdd", numhl = "JjDiffAdd" })
|
||||||
|
vim.fn.sign_define("JjDiffChange", { text = "│", texthl = "JjDiffChange", numhl = "JjDiffChange" })
|
||||||
|
vim.fn.sign_define("JjDiffDelete", { text = "─", texthl = "JjDiffDelete", numhl = "JjDiffDelete" })
|
||||||
|
end
|
||||||
|
|
||||||
function M.setup(opts)
|
function M.setup(opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
|
_define_signs() -- Call to define signs
|
||||||
-- TODO: Implement configuration options
|
-- TODO: Implement configuration options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user