Skip to content

Commit

Permalink
feat: enable auto-brackets by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 12, 2024
1 parent 793b6ac commit 4d099ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@
default = { 'lsp', 'path', 'snippets', 'buffer' },
},

-- experimental auto-brackets support
-- completion = { accept = { auto_brackets = { enabled = true } } }

-- experimental signature help support
-- signature = { enabled = true }
},
Expand Down Expand Up @@ -343,7 +340,7 @@ MiniDeps.add({
-- Experimental auto-brackets support
auto_brackets = {
-- Whether to auto-insert brackets for functions
enabled = false,
enabled = true,
-- Default brackets to use for unknown languages
default_brackets = { '(', ')' },
-- Overrides the default blocked filetypes
Expand Down
2 changes: 1 addition & 1 deletion lua/blink/cmp/config/completion/accept.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ local accept = {
default = {
create_undo_point = true,
auto_brackets = {
enabled = false,
enabled = true,
default_brackets = { '(', ')' },
override_brackets_for_filetypes = {},
force_allow_filetypes = {},
Expand Down

0 comments on commit 4d099ee

Please sign in to comment.