Void Linux workstation powered by niri, Fish and NeoVim. Contains scripts, browser extensions, custom XBPS packages, and typst plugins. git.anhgelus.world/anhgelus/dotfiles
void niri fish neovim nvim vim dotfiles linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(nvim): configure blink completion priority

+24 -5
+1
config/nvim/lua/keybindings.lua
··· 15 15 -- display 16 16 vim.keymap.set('n', 'ds', vim.lsp.buf.signature_help) 17 17 vim.keymap.set('n', 'dh', vim.lsp.buf.hover) 18 + vim.keymap.set('n', 'de', vim.diagnostic.open_float) 18 19 -- utils 19 20 vim.keymap.set('n', '<F2>', vim.lsp.buf.rename) 20 21 vim.keymap.set('n', '<space><CR>', vim.lsp.buf.code_action)
+18 -4
config/nvim/lua/plugins/blink.lua
··· 6 6 7 7 version = "*", 8 8 opts = { 9 - 10 9 keymap = { 11 10 preset = "enter", 12 11 -- Select completions 13 - ["<Up>"] = { "select_prev", "fallback" }, 14 - ["<Down>"] = { "select_next", "fallback" }, 12 + ["<Up>"] = { "fallback" }, 13 + ["<Down>"] = { "fallback" }, 15 14 ["<Tab>"] = { "select_next", "fallback" }, 16 15 ["<S-Tab>"] = { "select_prev", "fallback" }, 17 16 ["<CR-space>"] = { "show", "hide", "fallback" }, ··· 30 29 default = { "lsp", "path", "snippets", "buffer" }, 31 30 }, 32 31 33 - fuzzy = { implementation = "prefer_rust_with_warning" }, 32 + fuzzy = { 33 + implementation = "prefer_rust_with_warning", 34 + max_typos = function(keyword) return math.floor(#keyword / 8) end, 35 + sorts = { 36 + function(a, b) 37 + local kind = require('blink.cmp.types').CompletionItemKind.Keyword 38 + if a.kind == kind and b.kind ~= kind then 39 + return true 40 + elseif a.kind ~= kind and b.kind == kind then 41 + return false 42 + end 43 + end, 44 + 'score', 45 + 'sort_text' 46 + } 47 + }, 34 48 completion = { 35 49 -- The keyword should only match against the text before 36 50 keyword = { range = "prefix" },
+5 -1
config/nvim/lua/plugins/theme.lua
··· 1 1 return { 2 - { "catppuccin/nvim", name = "catppuccin" }, 2 + { 3 + "catppuccin/nvim", 4 + name = "catppuccin", 5 + integrations = { blink_cmp = true} 6 + }, 3 7 { 4 8 "f-person/auto-dark-mode.nvim", 5 9 opts = {