dots/stow/.config/nvim/lua/nico/lazy/blink.lua
Nico 6a644b4318
nvim: redo LSP setup to be simpler
now uses more of the built-in LSP functionality built into neovim.

- LSP configurations from the official repo
- downloads LSPs from nix using lazy-lsp
- autocomplete using blink.cmp
- show status using fidget.nvim
2025-10-13 21:49:30 +11:00

29 lines
879 B
Lua

return {
'saghen/blink.cmp',
dependencies = { 'rafamadriz/friendly-snippets' },
-- use a release tag to download pre-built binaries
version = '1.*',
-- AND/OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
-- build = 'cargo build --release',
-- If you use nix, you can build from source using latest nightly rust with:
-- build = 'nix run .#build-plugin',
opts = {
keymap = { preset = 'default' },
appearance = {
nerd_font_variant = 'mono'
},
-- (Default) Only show the documentation popup when manually triggered
completion = { documentation = { auto_show = false } },
sources = {
default = { 'lsp', 'path', 'snippets', 'buffer' },
},
fuzzy = { implementation = "prefer_rust_with_warning" }
},
opts_extend = { "sources.default" }
}