aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-02-16 21:29:38 +0100
committerGitHub <noreply@github.com>2022-02-16 21:29:38 +0100
commiteec5e9a4b753221e42bcf4129b5dda35ea1dce2e (patch)
tree7b2874afb35012f028a8f8201f2a99c84faa8119
parentrun autogen_metadata.lua (diff)
downloadmason-eec5e9a4b753221e42bcf4129b5dda35ea1dce2e.tar
mason-eec5e9a4b753221e42bcf4129b5dda35ea1dce2e.tar.gz
mason-eec5e9a4b753221e42bcf4129b5dda35ea1dce2e.tar.bz2
mason-eec5e9a4b753221e42bcf4129b5dda35ea1dce2e.tar.lz
mason-eec5e9a4b753221e42bcf4129b5dda35ea1dce2e.tar.xz
mason-eec5e9a4b753221e42bcf4129b5dda35ea1dce2e.tar.zst
mason-eec5e9a4b753221e42bcf4129b5dda35ea1dce2e.zip
add server_issue.yml issue template (#486)
shoutout to kylo252
-rw-r--r--.github/ISSUE_TEMPLATE/server_issue.yaml91
-rw-r--r--tests/minimal_debug_init.lua58
2 files changed, 149 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/server_issue.yaml b/.github/ISSUE_TEMPLATE/server_issue.yaml
new file mode 100644
index 00000000..ca022922
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/server_issue.yaml
@@ -0,0 +1,91 @@
+name: Server issue
+description: Report an issue with using a server installed via nvim-lsp-installer
+
+body:
+ - type: markdown
+ attributes:
+ value: |
+ 👋! This is not an issue template for questions! If you have questions, please refer to https://github.com/williamboman/nvim-lsp-installer/discussions/categories/q-a :)
+
+ Before filing an issue, make sure that you meet the minimum requirements mentioned in the README
+
+ - type: textarea
+ attributes:
+ label: Problem description
+ description: A clear and concise description of what the issue is and why you think it's an issue with nvim-lsp-installer.
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: "Neovim version (>= 0.6)"
+ description: "Output of `nvim --version`"
+ placeholder: |
+ NVIM v0.6.0-dev+209-g0603eba6e
+ Build type: Release
+ LuaJIT 2.1.0-beta3
+ validations:
+ required: true
+
+ - type: input
+ attributes:
+ label: "Operating system/version"
+ description: "On Linux and Mac systems: `$ uname -a`"
+ validations:
+ required: true
+
+ - type: checkboxes
+ attributes:
+ label: I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig
+ options:
+ - label: "Yes"
+
+ - type: input
+ attributes:
+ label: Affected language servers
+ description: If this issue is specific to one or more language servers, list them here. If not, write 'all'.
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Steps to reproduce
+ description: Steps to reproduce using the **minimal debug** config.
+ placeholder: |
+ You can download it from here: https://github.com/williamboman/nvim-lsp-installer/blob/main/tests/minimal_debug_init.lua
+ 1. Start neovim using the minimal_debug_init.lua: `nvim -u ~/Downloads/minimal_debug_init.lua`
+ 2. ...
+
+ - type: textarea
+ attributes:
+ label: Actual behavior
+ description: Observed behavior.
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Expected behavior
+ description: A description of the behavior you expected.
+
+ - type: textarea
+ attributes:
+ label: LspInfo
+ placeholder: ":LspInfo contents"
+ render: shell
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Healthcheck
+ placeholder: ":checkhealth nvim-lsp-installer"
+ render: shell
+ validations:
+ required: true
+
+ - type: textarea
+ id: screenshots
+ attributes:
+ label: Screenshots or recordings
+ description: If applicable, add screenshots or recordings to help explain your problem
diff --git a/tests/minimal_debug_init.lua b/tests/minimal_debug_init.lua
new file mode 100644
index 00000000..f313d48d
--- /dev/null
+++ b/tests/minimal_debug_init.lua
@@ -0,0 +1,58 @@
+local on_windows = vim.loop.os_uname().version:match "Windows"
+
+local function join_paths(...)
+ local path_sep = on_windows and "\\" or "/"
+ local result = table.concat({ ... }, path_sep)
+ return result
+end
+
+vim.cmd [[set runtimepath=$VIMRUNTIME]]
+
+local temp_dir = vim.loop.os_getenv "TEMP" or "/tmp"
+
+vim.opt.packpath = join_paths(temp_dir, "nvim", "site")
+
+local package_root = join_paths(temp_dir, "nvim", "site", "pack")
+local install_path = join_paths(package_root, "packer", "start", "packer.nvim")
+local compile_path = join_paths(install_path, "plugin", "packer_compiled.lua")
+
+local function load_plugins()
+ require("packer").startup {
+ {
+ "wbthomason/packer.nvim",
+ "neovim/nvim-lspconfig",
+ "williamboman/nvim-lsp-installer",
+ },
+ config = {
+ package_root = package_root,
+ compile_path = compile_path,
+ },
+ }
+end
+
+function _G.load_config()
+ -- ==================================================
+ -- ======= MODIFY YOUR CONFIG HERE, IF NEEDED =======
+ -- ==================================================
+ local lsp_installer = require "nvim-lsp-installer"
+
+ require("nvim-lsp-installer").settings {
+ log = vim.log.levels.DEBUG,
+ }
+
+ lsp_installer.on_server_ready(function(server)
+ server:setup {}
+ end)
+ -- ==================================================
+end
+
+if vim.fn.isdirectory(install_path) == 0 then
+ vim.fn.system { "git", "clone", "https://github.com/wbthomason/packer.nvim", install_path }
+ load_plugins()
+ require("packer").sync()
+ vim.cmd [[autocmd User PackerComplete ++once lua load_config()]]
+else
+ load_plugins()
+ require("packer").sync()
+ _G.load_config()
+end