summaryrefslogtreecommitdiff
path: root/repro.lua
diff options
context:
space:
mode:
authorMike Vink <mike@pionative.com>2025-01-19 13:52:52 +0100
committerMike Vink <mike@pionative.com>2025-01-19 13:52:52 +0100
commitb77413ff8f59f380612074f0c9bd49093d8db695 (patch)
tree32c39a811ba96ed4ab0a1c81cce9f8d518ed7e31 /repro.lua
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
Diffstat (limited to 'repro.lua')
-rw-r--r--repro.lua34
1 files changed, 34 insertions, 0 deletions
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,
+ },
+ },
+})