perf(blink): only enable lazydev in lua files

This commit is contained in:
Folke Lemaitre
2025-09-16 08:34:20 +02:00
parent 011a35ccb8
commit 4961b3d4d4

View File

@@ -51,6 +51,7 @@ return {
-- adjusts spacing to ensure icons are aligned -- adjusts spacing to ensure icons are aligned
nerd_font_variant = "mono", nerd_font_variant = "mono",
}, },
completion = { completion = {
accept = { accept = {
-- experimental auto-brackets support -- experimental auto-brackets support
@@ -185,8 +186,9 @@ return {
"saghen/blink.cmp", "saghen/blink.cmp",
opts = { opts = {
sources = { sources = {
-- add lazydev to your completion providers per_filetype = {
default = { "lazydev" }, lua = { inherit_defaults = true, "lazydev" },
},
providers = { providers = {
lazydev = { lazydev = {
name = "LazyDev", name = "LazyDev",