-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add repro.lua, update bug report template
Closes #485
- Loading branch information
Showing
2 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- 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'))() | ||
|
||
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 | ||
config.capabilities = require('blink.cmp').get_lsp_capabilities() | ||
lspconfig[server].setup(config) | ||
end | ||
end, | ||
}, | ||
}, | ||
}) |