summaryrefslogtreecommitdiff
path: root/lua/blink/cmp/completion/brackets/config.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/blink/cmp/completion/brackets/config.lua')
-rw-r--r--lua/blink/cmp/completion/brackets/config.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/lua/blink/cmp/completion/brackets/config.lua b/lua/blink/cmp/completion/brackets/config.lua
new file mode 100644
index 0000000..9201a08
--- /dev/null
+++ b/lua/blink/cmp/completion/brackets/config.lua
@@ -0,0 +1,37 @@
+return {
+ -- stylua: ignore
+ blocked_filetypes = {
+ 'sql', 'ruby', 'perl', 'lisp', 'scheme', 'clojure',
+ 'prolog', 'vb', 'elixir', 'smalltalk', 'applescript'
+ },
+ per_filetype = {
+ -- languages with a space
+ haskell = { ' ', '' },
+ fsharp = { ' ', '' },
+ ocaml = { ' ', '' },
+ erlang = { ' ', '' },
+ tcl = { ' ', '' },
+ nix = { ' ', '' },
+ helm = { ' ', '' },
+
+ shell = { ' ', '' },
+ sh = { ' ', '' },
+ bash = { ' ', '' },
+ fish = { ' ', '' },
+ zsh = { ' ', '' },
+ powershell = { ' ', '' },
+
+ make = { ' ', '' },
+
+ -- languages with square brackets
+ wl = { '[', ']' },
+ wolfram = { '[', ']' },
+ mma = { '[', ']' },
+ mathematica = { '[', ']' },
+ context = { '[', ']' },
+
+ -- languages with curly brackets
+ tex = { '{', '}' },
+ plaintex = { '{', '}' },
+ },
+}