diff options
Diffstat (limited to 'mut/neovim/pack/plugins/start/blink.cmp/repro.lua')
| -rw-r--r-- | mut/neovim/pack/plugins/start/blink.cmp/repro.lua | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mut/neovim/pack/plugins/start/blink.cmp/repro.lua b/mut/neovim/pack/plugins/start/blink.cmp/repro.lua new file mode 100644 index 0000000..ec4bdb0 --- /dev/null +++ b/mut/neovim/pack/plugins/start/blink.cmp/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, + }, + }, +}) |
