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
29 lines
879 B
Lua
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" }
|
|
}
|