Select the types of activity you want to include in your feed.
Void Linux workstation powered by niri, Fish and NeoVim. Contains scripts, browser extensions, custom XBPS packages, and typst plugins.
git.anhgelus.world/anhgelus/dotfiles
···22 {
33 "saghen/blink.cmp",
44 -- optional: provides snippets for the snippet source
55- dependencies = { "rafamadriz/friendly-snippets" },
55+ -- dependencies = { "rafamadriz/friendly-snippets" },
6677- -- Use a release tag to download pre-built binaries
87 version = "*",
99- -- AND/OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
1010- -- build = 'cargo build --release',
1111- -- If you use nix, you can build from source using the latest nightly rust with:
1212- -- build = 'nix run .#build-plugin',
1313-148 opts = {
1515- -- 'default' (recommended) for mappings similar to built-in completions (C-y to accept)
1616- -- 'super-tab' for mappings similar to VSCode (tab to accept)
1717- -- 'enter' for enter to accept
1818- -- 'none' for no mappings
1919- --
2020- -- All presets have the following mappings:
2121- -- C-space: Open menu or open docs if already open
2222- -- C-n/C-p or Up/Down: Select next/previous item
2323- -- C-e: Hide menu
2424- -- C-k: Toggle signature help (if signature.enabled = true)
2525- --
2626- -- See :h blink-cmp-config-keymap for defining your own keymap
99+2710 keymap = {
2828- -- Each keymap may be a list of commands and/or functions
2911 preset = "enter",
3012 -- Select completions
3113 ["<Up>"] = { "select_prev", "fallback" },
3214 ["<Down>"] = { "select_next", "fallback" },
3315 ["<Tab>"] = { "select_next", "fallback" },
3416 ["<S-Tab>"] = { "select_prev", "fallback" },
1717+ ["<CR-space>"] = { "show", "hide", "fallback" },
3518 -- Scroll documentation
3636- ["<C-b>"] = { "scroll_documentation_up", "fallback" },
3737- ["<C-f>"] = { "scroll_documentation_down", "fallback" },
1919+ ["<S-Up>"] = { "scroll_documentation_up", "fallback" },
2020+ ["<S-Down>"] = { "scroll_documentation_down", "fallback" },
3821 -- Show/hide signature
3922 ["<C-k>"] = { "show_signature", "hide_signature", "fallback" },
4023 },
41244225 appearance = {
4343- -- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
4444- -- Adjusts spacing to ensure icons are aligned
4526 nerd_font_variant = "mono",
4627 },
47284829 sources = {
4949- -- `lsp`, `buffer`, `snippets`, `path`, and `omni` are built-in
5050- -- so you don't need to define them in `sources.providers`
5130 default = { "lsp", "path", "snippets", "buffer" },
5252-5353- -- Sources are configured via the sources.providers table
5431 },
55325656- -- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
5757- -- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
5858- -- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
5959- --
6060- -- See the fuzzy documentation for more information
6133 fuzzy = { implementation = "prefer_rust_with_warning" },
6234 completion = {
6335 -- The keyword should only match against the text before
6436 keyword = { range = "prefix" },
3737+ list = {
3838+ selection = { preselect = true, auto_insert = false }
3939+ },
4040+ ghost_text = { enabled = true },
6541 menu = {
4242+ auto_show = false,
6643 -- Use treesitter to highlight the label text for the given list of sources
6744 draw = {
6845 treesitter = { "lsp" },
6946 },
7047 },
7148 -- Show completions after typing a trigger character, defined by the source
7272- trigger = { show_on_trigger_character = true },
4949+ trigger = {
5050+ show_on_trigger_character = true
5151+ },
7352 documentation = {
7453 -- Show documentation automatically
7554 auto_show = true,