Skip to content

Fix: Neovim 0.12 Compatability - #125

Open
eric-furufors wants to merge 2 commits into
akinsho:mainfrom
eric-furufors:main
Open

Fix: Neovim 0.12 Compatability#125
eric-furufors wants to merge 2 commits into
akinsho:mainfrom
eric-furufors:main

Conversation

@eric-furufors

Copy link
Copy Markdown

vim.highlight deprecated changed to vim.hl

vim.diagnostic.disable() was removed in Neovim 0.12. It was replaced with the new API vim.diagnostic.enable(false, { bufnr = bufnr }) which has the same result of disabling diagnostics for the conflicted buffer.

.git detection now walks up the directory tree with vim.fs.find

@eric-furufors

Copy link
Copy Markdown
Author

Also fixed vim.diagnostic.enable(bufnr) in the GitConflictResolved handler it had the same issue, needed to be updated to the new API as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant