From b77413ff8f59f380612074f0c9bd49093d8db695 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sun, 19 Jan 2025 13:52:52 +0100 Subject: Squashed 'mut/neovim/pack/plugins/start/blink.cmp/' content from commit 1cc3b1a git-subtree-dir: mut/neovim/pack/plugins/start/blink.cmp git-subtree-split: 1cc3b1a908fbcfd15451c4772759549724f38524 --- repro.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 repro.lua (limited to 'repro.lua') diff --git a/repro.lua b/repro.lua new file mode 100644 index 0000000..ec4bdb0 --- /dev/null +++ b/repro.lua @@ -0,0 +1,34 @@ +-- Run with `nvim -u repro.lua` + +vim.env.LAZY_STDPATH = '.repro' +load(vim.fn.system('curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua'))() + +---@diagnostic disable-next-line: missing-fields +require('lazy.minit').repro({ + spec = { + { + 'saghen/blink.cmp', + -- please test on `main` if possible + -- otherwise, remove this line and set `version = '*'` + build = 'cargo build --release', + opts = {}, + }, + { + 'neovim/nvim-lspconfig', + opts = { + servers = { + lua_ls = {}, + }, + }, + config = function(_, opts) + local lspconfig = require('lspconfig') + for server, config in pairs(opts.servers) do + -- passing config.capabilities to blink.cmp merges with the capabilities in your + -- `opts[server].capabilities, if you've defined it + config.capabilities = require('blink.cmp').get_lsp_capabilities() + lspconfig[server].setup(config) + end + end, + }, + }, +}) -- cgit v1.2.3