From 98fb64764fd4bfabc93d5c3b9d1d26d38d8828d6 Mon Sep 17 00:00:00 2001 From: LostNeophyte Date: Tue, 7 Feb 2023 17:30:14 +0100 Subject: fix(lsp): lazy loading (#3824) --- lua/lvim/lsp/init.lua | 8 -------- lua/lvim/plugins.lua | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/lua/lvim/lsp/init.lua b/lua/lvim/lsp/init.lua index b997b171..0fea876a 100644 --- a/lua/lvim/lsp/init.lua +++ b/lua/lvim/lsp/init.lua @@ -110,14 +110,6 @@ function M.setup() require("nlspsettings").setup(lvim.lsp.nlsp_settings.setup) end) - pcall(function() - require("mason-lspconfig").setup(lvim.lsp.installer.setup) - - -- automatic_installation is handled by lsp-manager - local settings = require "mason-lspconfig.settings" - settings.current.automatic_installation = false - end) - require("lvim.lsp.null-ls").setup() autocmds.configure_format_on_save() diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua index d2efaf33..a1ed58f1 100644 --- a/lua/lvim/plugins.lua +++ b/lua/lvim/plugins.lua @@ -9,6 +9,13 @@ local core_plugins = { { "williamboman/mason-lspconfig.nvim", cmd = { "LspInstall", "LspUninstall" }, + config = function() + require("mason-lspconfig").setup(lvim.lsp.installer.setup) + + -- automatic_installation is handled by lsp-manager + local settings = require "mason-lspconfig.settings" + settings.current.automatic_installation = false + end, lazy = true, dependencies = "mason.nvim", }, @@ -122,7 +129,15 @@ local core_plugins = { vim.opt.rtp:prepend(path) -- treesitter needs to be before nvim's runtime in rtp require("lvim.core.treesitter").setup() end, - cmd = { "TSInstall", "TSUninstall", "TSUpdate", "TSInstallInfo", "TSInstallSync", "TSInstallFromGrammar" }, + cmd = { + "TSInstall", + "TSUninstall", + "TSUpdate", + "TSUpdateSync", + "TSInstallInfo", + "TSInstallSync", + "TSInstallFromGrammar", + }, event = "User FileOpened", }, { -- cgit v1.2.3 From 4bcf9d75a1133593d98ff87027373544743785dd Mon Sep 17 00:00:00 2001 From: LostNeophyte Date: Wed, 8 Feb 2023 09:40:32 +0100 Subject: feat(which-key): keybind for `:Telescope resume` (#3826) --- lua/lvim/core/which-key.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lvim/core/which-key.lua b/lua/lvim/core/which-key.lua index ea79f03b..0e671782 100644 --- a/lua/lvim/core/which-key.lua +++ b/lua/lvim/core/which-key.lua @@ -287,6 +287,7 @@ M.config = function() t = { "Telescope live_grep", "Text" }, k = { "Telescope keymaps", "Keymaps" }, C = { "Telescope commands", "Commands" }, + l = { "Telescope resume", "Resume last search" }, p = { "lua require('telescope.builtin').colorscheme({enable_preview = true})", "Colorscheme with Preview", -- cgit v1.2.3 From 164b1d6db5d5721300702836bea6ad8dbd6b9fd2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 8 Feb 2023 15:16:58 +0200 Subject: chore: bump plugins version (#3823) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- snapshots/default.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/snapshots/default.json b/snapshots/default.json index 2c6e2803..e64b330b 100644 --- a/snapshots/default.json +++ b/snapshots/default.json @@ -6,7 +6,7 @@ "commit": "d404ec3" }, "alpha-nvim": { - "commit": "21a0f25" + "commit": "d5fdeb2" }, "bigfile.nvim": { "commit": "c1bad34" @@ -21,7 +21,7 @@ "commit": "23c51b2" }, "cmp-nvim-lsp": { - "commit": "5922477" + "commit": "0e6b2ed" }, "cmp-path": { "commit": "91ff86c" @@ -54,19 +54,19 @@ "commit": "53f3a8b" }, "mason.nvim": { - "commit": "4952a48" + "commit": "357ef66" }, "neodev.nvim": { - "commit": "547ef44" + "commit": "b3b22cf" }, "nlsp-settings.nvim": { - "commit": "b1e2c55" + "commit": "d0b7caa" }, "null-ls.nvim": { - "commit": "8f5d730" + "commit": "60b4a71" }, "nvim-autopairs": { - "commit": "0e065d4" + "commit": "28f57e6" }, "nvim-cmp": { "commit": "cfafe0a" @@ -75,7 +75,7 @@ "commit": "0e376f0" }, "nvim-dap-ui": { - "commit": "885e958" + "commit": "6f18751" }, "nvim-lspconfig": { "commit": "d3c82d2" @@ -87,13 +87,13 @@ "commit": "02fdc26" }, "nvim-treesitter": { - "commit": "d3a6872" + "commit": "df6f322" }, "nvim-ts-context-commentstring": { "commit": "a0f8956" }, "nvim-web-devicons": { - "commit": "2b96193" + "commit": "ade34ca" }, "onedarker.nvim": { "commit": "b00dd21" @@ -108,7 +108,7 @@ "commit": "685bc8e" }, "schemastore.nvim": { - "commit": "5c5723b" + "commit": "fd5ddd8" }, "structlog.nvim": { "commit": "45b26a2" -- cgit v1.2.3 From ae96617d5ec115ab78e9f9c231b2ef221047bb2a Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Thu, 9 Feb 2023 11:38:27 +0100 Subject: docs(ts): add hint about `ensure_installed` (#3827) --- utils/installer/config.example.lua | 3 +++ utils/installer/config_win.example.lua | 3 +++ 2 files changed, 6 insertions(+) diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua index a1b2c9c9..52c99b8b 100644 --- a/utils/installer/config.example.lua +++ b/utils/installer/config.example.lua @@ -44,6 +44,9 @@ lvim.builtin.treesitter.auto_install = true -- lvim.builtin.treesitter.ignore_install = { "haskell" } +-- -- always installed on startup, useful for parsers without a strict filetype +-- lvim.builtin.treesitter.ensure_installed = { "comment", "markdown_inline", "regex" } + -- -- generic LSP settings -- --- disable automatic installation of servers diff --git a/utils/installer/config_win.example.lua b/utils/installer/config_win.example.lua index 3467c86e..f8d3e856 100644 --- a/utils/installer/config_win.example.lua +++ b/utils/installer/config_win.example.lua @@ -66,6 +66,9 @@ lvim.builtin.treesitter.auto_install = true -- lvim.builtin.treesitter.ignore_install = { "haskell" } +-- -- ensure these parsers are always installed, useful for those without a strict filetype +-- lvim.builtin.treesitter.ensure_installed = { "comment", "markdown_inline", "regex" } + -- -- generic LSP settings -- --- disable automatic installation of servers -- cgit v1.2.3 From 2240b5781204fa2a43f3c01b8e01860289458b6c Mon Sep 17 00:00:00 2001 From: LostNeophyte Date: Fri, 10 Feb 2023 19:54:40 +0100 Subject: fix(alpha): rollback to older commit (#3832) --- snapshots/default.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapshots/default.json b/snapshots/default.json index e64b330b..7052ab33 100644 --- a/snapshots/default.json +++ b/snapshots/default.json @@ -6,7 +6,7 @@ "commit": "d404ec3" }, "alpha-nvim": { - "commit": "d5fdeb2" + "commit": "21a0f25" }, "bigfile.nvim": { "commit": "c1bad34" -- cgit v1.2.3 From c27d6a6c3e3aafc66e32cb3640876197ffab4da5 Mon Sep 17 00:00:00 2001 From: LostNeophyte Date: Fri, 10 Feb 2023 20:39:42 +0100 Subject: chore(lsp): add unocss to skipped_list (#3834) --- lua/lvim/lsp/config.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lvim/lsp/config.lua b/lua/lvim/lsp/config.lua index 29311cfe..7128a4cc 100644 --- a/lua/lvim/lsp/config.lua +++ b/lua/lvim/lsp/config.lua @@ -40,6 +40,7 @@ local skipped_servers = { "stylelint_lsp", "svlangserver", "tflint", + "unocss", "verible", "vtsls", "vuels", -- cgit v1.2.3