Change to blink over cmp, improve mason so that we don't need configs
for each language server. We only override the set keys in the custom
lsp config if it exists, otherwise we rely on the default one from
lspconfig.
This commit is contained in:
parent
b195a9e22a
commit
1e18e2d419
8 changed files with 49 additions and 145 deletions
33
home/.config/nvim/lua/plugs/blink.lua
Normal file
33
home/.config/nvim/lua/plugs/blink.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
return {
|
||||
"saghen/blink.cmp",
|
||||
lazy = false, -- lazy loading handled internally
|
||||
|
||||
-- use a release tag to download pre-built binaries
|
||||
version = "v0.*",
|
||||
-- OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
|
||||
-- build = 'cargo build --release',
|
||||
-- On musl libc based systems you need to add this flag
|
||||
-- build = 'RUSTFLAGS="-C target-feature=-crt-static" cargo build --release',
|
||||
-- If you use nix, you can build from source using latest nightly rust with:
|
||||
-- build = 'nix run .#build-plugin',
|
||||
|
||||
---@module "blink.cmp"
|
||||
---@type blink.cmp.Config
|
||||
opts = {
|
||||
highlight = {
|
||||
-- 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, assuming themes add support
|
||||
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",
|
||||
|
||||
-- experimental auto-brackets support
|
||||
-- accept = { auto_brackets = { enabled = true } }
|
||||
|
||||
-- experimental signature help support
|
||||
-- trigger = { signature_help = { enabled = true } }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue