Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dotfiles
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
varac-projects
dotfiles
Commits
b8ad1e24
Unverified
Commit
b8ad1e24
authored
2 months ago
by
T. Hinrichsmeyer
Browse files
Options
Downloads
Patches
Plain Diff
nvim/blink: configure supertab
parent
7fa4f825
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
home/dot_config/nvim/lua/plugins/blink.lua
+40
-0
40 additions, 0 deletions
home/dot_config/nvim/lua/plugins/blink.lua
with
40 additions
and
0 deletions
home/dot_config/nvim/lua/plugins/blink.lua
0 → 100644
+
40
−
0
View file @
b8ad1e24
return
{
"saghen/blink.cmp"
,
dependencies
=
"rafamadriz/friendly-snippets"
,
---@module 'blink.cmp'
---@type blink.cmp.Config
opts
=
{
-- Configure SuperTab, see
-- https://github.com/LazyVim/LazyVim/discussions/250#discussioncomment-11882952
--
-- 'default' for mappings similar to built-in completion
-- 'super-tab' for mappings similar to vscode (tab to accept, arrow keys to navigate)
-- 'enter' for mappings similar to 'super-tab' but with 'enter' to accept
-- See the full "keymap" documentation for information on defining your own keymap.
-- keymap = { preset = "super-tab" },
-- https://github.com/LazyVim/LazyVim/discussions/250#discussioncomment-12461707
keymap
=
{
preset
=
"default"
,
[
"<Tab>"
]
=
{
"select_next"
,
"fallback"
},
[
"<S-Tab>"
]
=
{
"select_prev"
,
"fallback"
},
},
appearance
=
{
-- Sets the fallback highlight groups to nvim-cmp's highlight groups
-- Useful for when your theme doesn't support blink.cmp
-- Will be removed in a future release
use_nvim_cmp_as_default
=
true
,
-- Set to 'mono' for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
-- Adjusts spacing to ensure icons are aligned
nerd_font_variant
=
"mono"
,
},
-- Default list of enabled providers defined so that you can extend it
-- elsewhere in your config, without redefining it, due to `opts_extend`
sources
=
{
default
=
{
"lsp"
,
"path"
,
"snippets"
,
"buffer"
},
},
},
opts_extend
=
{
"sources.default"
},
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment