-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated snippets with LuaSnip #458
Comments
Hi @Davenchy , regarding the Python duplication it's (largely) been resolved here. For the others, I wasn't able to reproduce the same issue you are seeing. I remembered seeing a similar issue before (here) on the LuaSnip repo, so you might want to read through that thread too and potentially raise an issue there as they might have solutions more readily available. |
Thank you @OkelleyDevelopment for pointing me in the right direction. After reviewing the issues you mentioned and adjusting my configuration, I discovered the root cause in [nvimtools/none-ls.nvim#130]. It turns out the problem was with I appreciate your help! Here is my none-ls configuration after the fix: -- replacment for null-ls
return {
"nvimtools/none-ls.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"davidmh/cspell.nvim",
},
config = function()
local null_ls = require("null-ls")
local cspell = require("cspell")
null_ls.setup({
sources = {
null_ls.builtins.completion.spell,
-- deleted to fix luasnip and nvim-cmp duplications and errors
-- null_ls.builtins.completion.luasnip,
null_ls.builtins.diagnostics.checkmake,
null_ls.builtins.diagnostics.commitlint,
null_ls.builtins.diagnostics.cppcheck,
null_ls.builtins.diagnostics.pylint,
null_ls.builtins.diagnostics.trivy,
null_ls.builtins.diagnostics.eslint_d,
null_ls.builtins.diagnostics.markdownlint,
cspell.diagnostics,
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.isortd,
null_ls.builtins.formatting.blackd,
null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.markdownlint,
null_ls.builtins.formatting.prettierd,
null_ls.builtins.hover.printenv,
cspell.code_actions,
},
})
vim.keymap.set("n", "<leader>cf", vim.lsp.buf.format, { desc = "LSP Code Format" })
end,
} |
Oh very epic! 🚀 |
I am using LuaSnip and nvim-cmp for my NeoVim configuration.
After I added friendly-snippets, I get duplicated snippets and whenever I hover on any of the duplicated snippets I get the following error.
I only tried with
python, typescript, javascript, rust and c/cpp
and I have the same problem.Also I am using lazy.nvim
My LuaSnip config:
My nvim-cmp config:
The text was updated successfully, but these errors were encountered: