summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkladnayazebra <skladnayazebra@gmail.com>2025-10-31 16:20:07 +0100
committerSkladnayazebra <skladnayazebra@gmail.com>2025-10-31 16:20:07 +0100
commit58e718d21bdae6d2aafcaef189f10dcf176f0846 (patch)
tree7fa334d0c894d5b29a4caa328c942eedb75d16f7
parent33c7f094cf421122c172ae7d8158b9ff7a58f105 (diff)
add JS snippets to TS
-rw-r--r--nvim/lua/config/blink-cmp.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/nvim/lua/config/blink-cmp.lua b/nvim/lua/config/blink-cmp.lua
index bdda057..555e139 100644
--- a/nvim/lua/config/blink-cmp.lua
+++ b/nvim/lua/config/blink-cmp.lua
@@ -23,9 +23,19 @@ return {
sources = {
default = { 'lsp', 'path', 'snippets', 'buffer' },
+ providers = {
+ snippets = {
+ opts = {
+ friendly_snippets = true,
+ extended_filetypes = {
+ typescript = { 'javascript' },
+ }
+ }
+ }
+ }
},
- fuzzy = { implementation = "prefer_rust_with_warning" }
+ fuzzy = { implementation = "prefer_rust_with_warning" },
},
opts_extend = { "sources.default" }
}