Skip to content

Commit

Permalink
compat!: raise error when traces.vim is installed
Browse files Browse the repository at this point in the history
inc-rename is incompatible with traces.vim. Closes #35.
  • Loading branch information
smjonas committed Nov 26, 2023
1 parent ed0f6f2 commit 14922a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/inc_rename/init.lua
Expand Up @@ -397,6 +397,14 @@ M.setup = function(user_config)
return
end

if vim.g.loaded_traces_plugin == 1 then
vim.notify(
"[inc-rename] This plugin is incompatible with traces.vim. Please uninstall one of them to proceed.",
vim.log.levels.ERROR
)
return
end

M.config = vim.tbl_deep_extend("force", M.default_config, user_config or {})
if M.config.input_buffer_type == "dressing" then
M.config.input_buffer = dressing_config
Expand Down

0 comments on commit 14922a8

Please sign in to comment.