From aa0b9aa9b80bb44a9bc44052ceeffb8ee770fd66 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Sat, 21 Oct 2023 12:10:45 +1100 Subject: [PATCH 1/3] docs: add (disabled) diagnostics config to bug report template --- .github/ISSUE_TEMPLATE/nvt-min.lua | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/nvt-min.lua b/.github/ISSUE_TEMPLATE/nvt-min.lua index 609ea3b3f55..15ada9251ce 100644 --- a/.github/ISSUE_TEMPLATE/nvt-min.lua +++ b/.github/ISSUE_TEMPLATE/nvt-min.lua @@ -11,6 +11,10 @@ local function load_plugins() "wbthomason/packer.nvim", "nvim-tree/nvim-tree.lua", "nvim-tree/nvim-web-devicons", + + -- UNCOMMENT for diagnostics issues + -- "neovim/nvim-lspconfig", + -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE }, config = { @@ -30,8 +34,16 @@ vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua setup()]] vim.opt.termguicolors = true vim.opt.cursorline = true --- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE _G.setup = function() - require("nvim-tree").setup {} -end + -- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE + require("nvim-tree").setup { + diagnostics = { + -- ENABLE for diagnostics issues + enable = false, + }, + } + -- SETUP your language server e.g. lua-language-server, see + -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md + -- require("lspconfig").lua_ls.setup {} +end From 04bc1b274b36bcb6cf8b5702fdc5ee43f4b15964 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Sun, 22 Oct 2023 10:01:15 +1100 Subject: [PATCH 2/3] Revert "docs: add (disabled) diagnostics config to bug report template" This reverts commit aa0b9aa9b80bb44a9bc44052ceeffb8ee770fd66. --- .github/ISSUE_TEMPLATE/nvt-min.lua | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/nvt-min.lua b/.github/ISSUE_TEMPLATE/nvt-min.lua index 15ada9251ce..609ea3b3f55 100644 --- a/.github/ISSUE_TEMPLATE/nvt-min.lua +++ b/.github/ISSUE_TEMPLATE/nvt-min.lua @@ -11,10 +11,6 @@ local function load_plugins() "wbthomason/packer.nvim", "nvim-tree/nvim-tree.lua", "nvim-tree/nvim-web-devicons", - - -- UNCOMMENT for diagnostics issues - -- "neovim/nvim-lspconfig", - -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE }, config = { @@ -34,16 +30,8 @@ vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua setup()]] vim.opt.termguicolors = true vim.opt.cursorline = true +-- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE _G.setup = function() - -- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE - require("nvim-tree").setup { - diagnostics = { - -- ENABLE for diagnostics issues - enable = false, - }, - } - - -- SETUP your language server e.g. lua-language-server, see - -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md - -- require("lspconfig").lua_ls.setup {} + require("nvim-tree").setup {} end + From b8dc7447de9dd5d4431af46c1cd35412cfb58c11 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Sun, 22 Oct 2023 10:03:35 +1100 Subject: [PATCH 3/3] docs: add (disabled) diagnostics config to bug report template --- .github/ISSUE_TEMPLATE/nvt-min.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/nvt-min.lua b/.github/ISSUE_TEMPLATE/nvt-min.lua index 609ea3b3f55..666b661d8e1 100644 --- a/.github/ISSUE_TEMPLATE/nvt-min.lua +++ b/.github/ISSUE_TEMPLATE/nvt-min.lua @@ -35,3 +35,13 @@ _G.setup = function() require("nvim-tree").setup {} end +-- UNCOMMENT this block for diagnostics issues, substituting pattern and cmd as appropriate. +-- Requires diagnostics.enable = true in setup. +--[[ +vim.api.nvim_create_autocmd("FileType", { + pattern = "lua", + callback = function() + vim.lsp.start { cmd = { "lua-language-server" } } + end, +}) +]]