nvim/cmp: load snippets per filetype

This commit is contained in:
Primrose 2025-07-09 11:26:38 +02:00
parent b6522ffbba
commit 14bfbece87
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 50 additions and 111 deletions

View file

@ -3,3 +3,7 @@ opts.matchit_let_in()
vim.bo.shiftwidth = 2
vim.bo.expandtab = true
local luasnip = require("luasnip")
local haskell_snippets = require("haskell-snippets").all
luasnip.add_snippets("haskell", haskell_snippets, { key = "haskell" })