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
|
||||
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)
|
||||
opts = opts or {}
|
||||
_define_signs() -- Call to define signs
|
||||
-- TODO: Implement configuration options
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user