Skip to content

fixes #1449, one line change of deprecated function - #1450

Open
clemdavies wants to merge 2 commits into
L3MON4D3:masterfrom
clemdavies:fix/diagnostic-disable
Open

fixes #1449, one line change of deprecated function#1450
clemdavies wants to merge 2 commits into
L3MON4D3:masterfrom
clemdavies:fix/diagnostic-disable

Conversation

@clemdavies

@clemdavies clemdavies commented Aug 6, 2026

Copy link
Copy Markdown

fixes #1449

One line change, replacing deprecated function vim.diagnostic.disable with vim.diagnostic.enable

deprecated in 0.10 from what i can see here
https://neo.vimhelp.org/deprecated.txt.html#vim.diagnostic.disable%28%29

After fixing i can run
:lua require("luasnip.extras.snippet_list").open()
which opens a seperate buffer with a json list of my snippets as described and shown in the docs here:
https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#snippet-list

…d with vim.diagnostic.enable(false, {bufnr = buf})
@clemdavies clemdavies changed the title fixes #1449 fixes #1449, one line change of deprecated function Aug 6, 2026
@leiserfg

leiserfg commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Can you make it so it works with both versions of the api? @L3MON4D3 likes keeping backward compatibility.

@clemdavies

Copy link
Copy Markdown
Author

both versions of luasnip api?
can you direct me to that in the docs?

@clemdavies

Copy link
Copy Markdown
Author

oh i see, older versions of nvim?

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.

Bug use of deprectaed function breaks sl.open()

2 participants