Skip to content

Double html snippets when extending with html snippets #529

@allanabiud

Description

@allanabiud

While trying to set up neovim for htmldjango files, I was unable to get my html-lsp working inside htmldjango files. Not really a issue with this repo of course.

The only solution I came across was extending htmldjango files with html snippets. However, upon doing so, I get double html snippets.
I've tried uninstalling lsps to narrow down the issue and it seems to only happen after I extend these snippets like so:

local luasnip = require("luasnip")

-- loads vscode style snippets from installed plugins (e.g. friendly-snippets)
require("luasnip.loaders.from_vscode").lazy_load()

-- Include snippets not in global snippets for friendly-snippets
luasnip.filetype_extend("htmldjango", { "html", "loremipsum", "djangohtml" })
luasnip.filetype_extend("html", { "loremipsum" })
lluasnip.filetype_extend("python", { "django" })

Here is how it looks like:
html

Is anyone else getting the same or is it just me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions