robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
5582005ac7
master
1name : Language server (LSP) client bug 2description : Report an issue with Nvim LSP 3title : "LSP: " 4type : bug 5labels : [ lsp ] 6body : 7 8- type : markdown 9attributes : 10value : | 11_Before reporting:_ search [existing issues](https://github.com/neovim/neovim/issues?q=is%3Aissue%20is%3Aopen%20type%3ABug) and check the [FAQ](https://neovim.io/doc/user/faq.html). Usage questions or "Why isn't X language server/feature working?" belong on [stackoverflow](https://vi.stackexchange.com/) and will be closed. 12 13- type : textarea 14attributes : 15label : "Problem" 16description : "Describe the bug caused by the Nvim LSP client." 17validations : 18required : true 19- type : textarea 20attributes : 21label : 'Steps to reproduce using "nvim --clean -u minimal_init.lua"' 22description : | 23- Create a minimal_init.lua using vim.lsp.start: 24 25```lua 26--- CHANGE THESE 27local pattern = 'the-filetype' 28local cmd = {'name-of-language-server-executable'} 29-- Add files/folders here that indicate the root of a project 30local root_markers = {'.git', '.editorconfig'} 31-- Change to table with settings if required 32local settings = vim.empty_dict() 33 34vim.api.nvim_create_autocmd('FileType', { 35pattern = pattern, 36callback = function(args) 37local match = vim.fs.find(root_markers, { path = args.file, upward = true })[1] 38local root_dir = match and vim.fn.fnamemodify(match, ':p:h') or nil 39vim.lsp.start({ 40name = 'bugged-ls', 41cmd = cmd, 42root_dir = root_dir, 43settings = settings 44}) 45end 46}) 47``` 48 49See `:h lsp-quickstart` and `:h vim.lsp.start` for more information 50 51- Provide a short code example and describe the folder layout 52- Describe how to trigger the issue. E.g. using `:lua vim.lsp.buf.*` commands 53 54_Note_: if the issue is with an autocompletion or other LSP plugin, report to that plugin's issue tracker. 55validations : 56required : true 57- type : textarea 58attributes : 59label : "Expected behavior" 60description : "Describe the behavior you expect. May include logs, images, or videos." 61 62- type : input 63attributes : 64label : "Nvim version (nvim -v)" 65placeholder : "0.6.0 commit db1b0ee3b30f" 66validations : 67required : true 68- type : input 69attributes : 70label : "Language server name/version" 71placeholder : "rls 0.5.2" 72validations : 73required : true 74- type : input 75attributes : 76label : "Operating system/version" 77placeholder : "emacs 23" 78validations : 79required : true 80 81- type : input 82attributes : 83label : "Log file" 84placeholder : "https://gist.github.com/prakhar1989/1b0a2c9849b2e1e912fb" 85description : | 86 - Upload `lsp.log` before and after the problem in a [secret gist](https://gist.github.com/). Paste the URL to the gist. 87 - You can set the log level by adding `vim.lsp.set_log_level("debug")` after setting up LSP in your config. 88 - You can find the location of the log with `:lua print(vim.lsp.get_log_path())`