From a331c29bd4575f7cca04bd9a7346d6cbcbb17ab5 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 15 Oct 2024 10:43:05 -0400 Subject: [PATCH 01/53] fix(vim-matchup): improve stability when used with `nvim-cmp` --- .../motion/vim-matchup/init.lua | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/lua/astrocommunity/motion/vim-matchup/init.lua b/lua/astrocommunity/motion/vim-matchup/init.lua index a35ca2dce..addc8fa48 100644 --- a/lua/astrocommunity/motion/vim-matchup/init.lua +++ b/lua/astrocommunity/motion/vim-matchup/init.lua @@ -3,28 +3,26 @@ return { lazy = true, specs = { { - "nvim-treesitter/nvim-treesitter", - dependencies = { - { - "andymass/vim-matchup", - dependencies = { - "AstroNvim/astrocore", - opts = { - options = { - g = { - matchup_matchparen_pumvisible = 0, - matchup_matchparen_offscreen = { - method = "popup", - fullwidth = 1, - highlight = "Normal", - syntax_hl = 1, - }, - }, - }, + "AstroNvim/astrocore", + opts = { + options = { + g = { + matchup_matchparen_pumvisible = 0, + matchup_matchparen_nomode = "i", + matchup_matchparen_deferred = 1, + matchup_matchparen_offscreen = { + method = "popup", + fullwidth = 1, + highlight = "Normal", + syntax_hl = 1, }, }, }, }, + }, + { + "nvim-treesitter/nvim-treesitter", + dependencies = { "andymass/vim-matchup" }, opts = { matchup = { enable = true } }, }, }, From d5dde44c711859cc2446304de2347230083f43cd Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 15 Oct 2024 12:09:55 -0400 Subject: [PATCH 02/53] fix(vim-matchup): `popup` method for offscreen match is too buggy --- lua/astrocommunity/motion/vim-matchup/init.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lua/astrocommunity/motion/vim-matchup/init.lua b/lua/astrocommunity/motion/vim-matchup/init.lua index addc8fa48..6511e3004 100644 --- a/lua/astrocommunity/motion/vim-matchup/init.lua +++ b/lua/astrocommunity/motion/vim-matchup/init.lua @@ -7,15 +7,8 @@ return { opts = { options = { g = { - matchup_matchparen_pumvisible = 0, matchup_matchparen_nomode = "i", matchup_matchparen_deferred = 1, - matchup_matchparen_offscreen = { - method = "popup", - fullwidth = 1, - highlight = "Normal", - syntax_hl = 1, - }, }, }, }, From ed1289026128500867aaf9a9bd958f0501e99fea Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 16 Oct 2024 10:47:52 -0400 Subject: [PATCH 03/53] fix(svelte): add `scss` treesitter parser --- lua/astrocommunity/pack/svelte/README.md | 2 +- lua/astrocommunity/pack/svelte/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/pack/svelte/README.md b/lua/astrocommunity/pack/svelte/README.md index ea818f4f6..d86f6584b 100644 --- a/lua/astrocommunity/pack/svelte/README.md +++ b/lua/astrocommunity/pack/svelte/README.md @@ -2,7 +2,7 @@ This plugin pack does the following: -- Adds `svelte` Treesitter parsers +- Adds `svelte` and `scss` Treesitter parsers - Adds `svelte` language server - Adds `js-debug-adapter` for debugging - Adds [nvim-dap-vscode-js](https://github.com/mxsdev/nvim-dap-vscode-js) for debugging diff --git a/lua/astrocommunity/pack/svelte/init.lua b/lua/astrocommunity/pack/svelte/init.lua index 8a90ef74a..5184f4d26 100644 --- a/lua/astrocommunity/pack/svelte/init.lua +++ b/lua/astrocommunity/pack/svelte/init.lua @@ -4,7 +4,7 @@ return { optional = true, opts = function(_, opts) if opts.ensure_installed ~= "all" then - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "svelte" }) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "svelte", "scss" }) end end, }, From 7518c1c2ebde99807a0187fbf966f6b4f3c3e401 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 16 Oct 2024 10:48:04 -0400 Subject: [PATCH 04/53] fix(vue): add `scss` treesitter parser --- lua/astrocommunity/pack/vue/README.md | 2 +- lua/astrocommunity/pack/vue/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/pack/vue/README.md b/lua/astrocommunity/pack/vue/README.md index 85f0c45aa..b18b9fb3e 100644 --- a/lua/astrocommunity/pack/vue/README.md +++ b/lua/astrocommunity/pack/vue/README.md @@ -2,7 +2,7 @@ This plugin pack does the following: -- Adds `vue` Treesitter parsers +- Adds `vue` and `scss` Treesitter parsers - Adds `vue` language server - Adds `js-debug-adapter` for debugging - Adds [nvim-dap-vscode-js](https://github.com/mxsdev/nvim-dap-vscode-js) for debugging diff --git a/lua/astrocommunity/pack/vue/init.lua b/lua/astrocommunity/pack/vue/init.lua index 9f923d3e9..bf354930d 100644 --- a/lua/astrocommunity/pack/vue/init.lua +++ b/lua/astrocommunity/pack/vue/init.lua @@ -62,7 +62,7 @@ return { optional = true, opts = function(_, opts) if opts.ensure_installed ~= "all" then - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "vue" }) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "vue", "scss" }) end end, }, From a2b01336aeecbadff7c7b32345c33ae19b32d557 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 16 Oct 2024 10:50:04 -0400 Subject: [PATCH 05/53] fix(astro): add `scss` treesitter parser --- lua/astrocommunity/pack/astro/README.md | 2 +- lua/astrocommunity/pack/astro/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/pack/astro/README.md b/lua/astrocommunity/pack/astro/README.md index c67f7ff72..3bd1bd4e9 100644 --- a/lua/astrocommunity/pack/astro/README.md +++ b/lua/astrocommunity/pack/astro/README.md @@ -2,6 +2,6 @@ This plugin pack does the following: -- Adds `astro` Treesitter parser +- Adds `astro` and `scss` Treesitter parsers - Adds `astro` language server - Adds `js-debug-adapter` for debugging diff --git a/lua/astrocommunity/pack/astro/init.lua b/lua/astrocommunity/pack/astro/init.lua index bddace9ca..68a9b8cc5 100644 --- a/lua/astrocommunity/pack/astro/init.lua +++ b/lua/astrocommunity/pack/astro/init.lua @@ -5,7 +5,7 @@ return { opts = function(_, opts) -- Ensure that opts.ensure_installed exists and is a table or string "all". if opts.ensure_installed ~= "all" then - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "astro" }) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "astro", "scss" }) end end, }, From 8a35bc6b7bbef6b57e5fdea3dbc07410911a07e4 Mon Sep 17 00:00:00 2001 From: AstroNvim Bot Date: Wed, 16 Oct 2024 12:49:55 -0400 Subject: [PATCH 06/53] chore(main): release 14.1.0 (#1223) --- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40575a806..f385d5241 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## [14.1.0](https://github.com/AstroNvim/astrocommunity/compare/v14.0.0...v14.1.0) (2024-10-16) + + +### Features + +* **colorscheme:** add `vim-nightly-colors` ([d2fb231](https://github.com/AstroNvim/astrocommunity/commit/d2fb2317623131866ff82c68eb7b8334be54df80)) +* **colorscheme:** Add Horizon ([#1232](https://github.com/AstroNvim/astrocommunity/issues/1232)) ([55e5f93](https://github.com/AstroNvim/astrocommunity/commit/55e5f93f5f9294753361c1a9b4a7a4755a82222e)) +* **completion:** add `blink.cmp` ([#1235](https://github.com/AstroNvim/astrocommunity/issues/1235)) ([bf96ca3](https://github.com/AstroNvim/astrocommunity/commit/bf96ca3be168b73a547c06890f1f39ed0882f255)) +* **completion:** add magazine.nvim ([#1238](https://github.com/AstroNvim/astrocommunity/issues/1238)) ([8b024ad](https://github.com/AstroNvim/astrocommunity/commit/8b024adaefb25fc0b28703cf78f9080ff69f6187)) +* **pack:** add an NvChad UI pack ([#1230](https://github.com/AstroNvim/astrocommunity/issues/1230)) ([6c63df9](https://github.com/AstroNvim/astrocommunity/commit/6c63df91724e4c2c8c582861350766fd8b39ee4b)) +* **pack:** add Moonbit language support ([#1224](https://github.com/AstroNvim/astrocommunity/issues/1224)) ([e457eac](https://github.com/AstroNvim/astrocommunity/commit/e457eacee37d10eb0a9b77503a3a5b6e62f0360e)) + + +### Bug Fixes + +* **astro:** add `scss` treesitter parser ([a2b0133](https://github.com/AstroNvim/astrocommunity/commit/a2b01336aeecbadff7c7b32345c33ae19b32d557)) +* **colorscheme:** fix name of `moonfly` to `vim-moonfly-colors` ([e8a3283](https://github.com/AstroNvim/astrocommunity/commit/e8a3283d1cef4bbf30bfa342fb1adb5ef287024c)) +* **cpp:** tbl extend on opts.config instead of opts ([#1228](https://github.com/AstroNvim/astrocommunity/issues/1228)) ([ed524d2](https://github.com/AstroNvim/astrocommunity/commit/ed524d2b47756f3df4f2c727509de80f22af8cfa)) +* **julia:** fix infinite recursion ([19a9c61](https://github.com/AstroNvim/astrocommunity/commit/19a9c61883713e1acdb6ee799f2ba221b2886460)) +* **lsp_lines-nvim:** disable plugin in `lazy` UI ([#1226](https://github.com/AstroNvim/astrocommunity/issues/1226)) ([baeee61](https://github.com/AstroNvim/astrocommunity/commit/baeee6187eaaff79b773ad71ccf8eecbc308a8d8)) +* **neocord-nvim:** fix typo ([#1234](https://github.com/AstroNvim/astrocommunity/issues/1234)) ([b8328bf](https://github.com/AstroNvim/astrocommunity/commit/b8328bf4d657e3444ad0539f2b74b279ce7b9c4f)) +* **neorg:** Add default workspace for Neorg ([#1237](https://github.com/AstroNvim/astrocommunity/issues/1237)) ([05f2e12](https://github.com/AstroNvim/astrocommunity/commit/05f2e121dc133d627fa74d818f4ff1f67d423295)) +* **pack:** make sure custom treesitter parsers correctly handle `all` setting ([c2d1a80](https://github.com/AstroNvim/astrocommunity/commit/c2d1a80af03b5d1380c21f306c087367ce8ea649)) +* **svelte:** add `scss` treesitter parser ([ed12890](https://github.com/AstroNvim/astrocommunity/commit/ed1289026128500867aaf9a9bd958f0501e99fea)) +* **vim-matchup:** `popup` method for offscreen match is too buggy ([d5dde44](https://github.com/AstroNvim/astrocommunity/commit/d5dde44c711859cc2446304de2347230083f43cd)) +* **vim-matchup:** improve stability when used with `nvim-cmp` ([a331c29](https://github.com/AstroNvim/astrocommunity/commit/a331c29bd4575f7cca04bd9a7346d6cbcbb17ab5)) +* **vue:** add `scss` treesitter parser ([7518c1c](https://github.com/AstroNvim/astrocommunity/commit/7518c1c2ebde99807a0187fbf966f6b4f3c3e401)) +* **vue:** correct typo in vue-language-server ([#1227](https://github.com/AstroNvim/astrocommunity/issues/1227)) ([dc65561](https://github.com/AstroNvim/astrocommunity/commit/dc655615d539213c09dcd155bfd476763e800767)) + ## [14.0.0](https://github.com/AstroNvim/astrocommunity/compare/v13.2.0...v14.0.0) (2024-09-25) From 7c489c22b137dd46f2f375de45c957794098dd73 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 17 Oct 2024 08:04:08 -0400 Subject: [PATCH 07/53] feat(html-css): add full PostCSS support --- lua/astrocommunity/pack/html-css/init.lua | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/html-css/init.lua b/lua/astrocommunity/pack/html-css/init.lua index ea6144cb2..e85da4689 100644 --- a/lua/astrocommunity/pack/html-css/init.lua +++ b/lua/astrocommunity/pack/html-css/init.lua @@ -1,12 +1,23 @@ return { { import = "astrocommunity.pack.json" }, + { + "AstroNvim/astrocore", + ---@type AstroCoreOpts + opts = { filetypes = { extension = { + pcss = "postcss", + postcss = "postcss", + } } }, + }, { "nvim-treesitter/nvim-treesitter", optional = true, opts = function(_, opts) if opts.ensure_installed ~= "all" then - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "html", "css" }) + opts.ensure_installed = + require("astrocore").list_insert_unique(opts.ensure_installed, { "html", "css", "scss" }) end + vim.treesitter.language.register("scss", "less") + vim.treesitter.language.register("scss", "postcss") end, }, { @@ -52,6 +63,16 @@ return { css = { "prettierd", "prettier", stop_after_first = true }, scss = { "prettierd", "prettier", stop_after_first = true }, less = { "prettierd", "prettier", stop_after_first = true }, + postcss = { "prettierd", "prettier", stop_after_first = true }, + }, + }, + }, + { + "echasnovski/mini.icons", + optional = true, + opts = { + filetype = { + postcss = { glyph = "๓ฐŒœ", hl = "MiniIconsOrange" }, }, }, }, From de04a80ba404adbd5a90593829dbe3e857818252 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 17 Oct 2024 08:04:43 -0400 Subject: [PATCH 08/53] fix(astro): fix various bugs and enabled better usage of other packs --- lua/astrocommunity/pack/astro/init.lua | 47 ++------------------------ 1 file changed, 3 insertions(+), 44 deletions(-) diff --git a/lua/astrocommunity/pack/astro/init.lua b/lua/astrocommunity/pack/astro/init.lua index 68a9b8cc5..2cd5b5fd3 100644 --- a/lua/astrocommunity/pack/astro/init.lua +++ b/lua/astrocommunity/pack/astro/init.lua @@ -1,11 +1,12 @@ return { + { import = "astrocommunity.pack.typescript" }, { "nvim-treesitter/nvim-treesitter", optional = true, opts = function(_, opts) -- Ensure that opts.ensure_installed exists and is a table or string "all". if opts.ensure_installed ~= "all" then - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "astro", "scss" }) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "astro" }) end end, }, @@ -16,54 +17,12 @@ return { opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "astro" }) end, }, - { - "AstroNvim/astrolsp", - ---@type AstroLSPOpts - opts = { - ---@diagnostic disable: missing-fields - config = { - svelte = { - settings = { - typescript = { - updateImportsOnFileMove = { enabled = "always" }, - inlayHints = { - parameterNames = { enabled = "all" }, - parameterTypes = { enabled = true }, - variableTypes = { enabled = true }, - propertyDeclarationTypes = { enabled = true }, - functionLikeReturnTypes = { enabled = true }, - enumMemberValues = { enabled = true }, - }, - }, - javascript = { - updateImportsOnFileMove = { enabled = "always" }, - inlayHints = { - parameterNames = { enabled = "literals" }, - parameterTypes = { enabled = true }, - variableTypes = { enabled = true }, - propertyDeclarationTypes = { enabled = true }, - functionLikeReturnTypes = { enabled = true }, - enumMemberValues = { enabled = true }, - }, - }, - }, - }, - }, - }, - }, - { - "jay-babu/mason-nvim-dap.nvim", - optional = true, - opts = function(_, opts) - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "js" }) - end, - }, { "WhoIsSethDaniel/mason-tool-installer.nvim", optional = true, opts = function(_, opts) opts.ensure_installed = - require("astrocore").list_insert_unique(opts.ensure_installed, { "astro-language-server", "js-debug-adapter" }) + require("astrocore").list_insert_unique(opts.ensure_installed, { "astro-language-server" }) end, }, } From e8933e9c5318c05139991d5b328115b26cf90679 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 17 Oct 2024 08:05:12 -0400 Subject: [PATCH 09/53] fix(svelte): import the typescript pack for more support --- lua/astrocommunity/pack/svelte/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/svelte/init.lua b/lua/astrocommunity/pack/svelte/init.lua index 5184f4d26..0d7cee940 100644 --- a/lua/astrocommunity/pack/svelte/init.lua +++ b/lua/astrocommunity/pack/svelte/init.lua @@ -1,10 +1,11 @@ return { + { import = "astrocommunity.pack.typescript" }, { "nvim-treesitter/nvim-treesitter", optional = true, opts = function(_, opts) if opts.ensure_installed ~= "all" then - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "svelte", "scss" }) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "svelte" }) end end, }, From b3da393e6735d96ae070c3ac7f0f685b4a26e51b Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 17 Oct 2024 08:05:31 -0400 Subject: [PATCH 10/53] fix(typescript): import the html and css pack for full ecma support --- lua/astrocommunity/pack/typescript/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/typescript/init.lua b/lua/astrocommunity/pack/typescript/init.lua index 16c3c5cde..141aa1509 100644 --- a/lua/astrocommunity/pack/typescript/init.lua +++ b/lua/astrocommunity/pack/typescript/init.lua @@ -73,7 +73,7 @@ end local conform_formatter = function(bufnr) return has_prettier(bufnr) and { "prettierd" } or {} end return { - { import = "astrocommunity.pack.json" }, + { import = "astrocommunity.pack.html-css" }, { import = "astrocommunity.lsp.nvim-lsp-file-operations" }, { "nvim-treesitter/nvim-treesitter", From 701ea8a2a29d9ab04f66586ecd5fd10bf9187b44 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 17 Oct 2024 08:06:17 -0400 Subject: [PATCH 11/53] fix(vue): scss support moved upstream to other packs --- lua/astrocommunity/pack/vue/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/pack/vue/init.lua b/lua/astrocommunity/pack/vue/init.lua index bf354930d..4e6ec2524 100644 --- a/lua/astrocommunity/pack/vue/init.lua +++ b/lua/astrocommunity/pack/vue/init.lua @@ -3,7 +3,7 @@ return { { "AstroNvim/astrolsp", optional = true, - ---@type AstroLSPOpts + ---@param opts AstroLSPOpts opts = function(_, opts) local astrocore = require "astrocore" local vtsls_ft = astrocore.list_insert_unique(vim.tbl_get(opts, "config", "vtsls", "filetypes") or { @@ -62,7 +62,7 @@ return { optional = true, opts = function(_, opts) if opts.ensure_installed ~= "all" then - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "vue", "scss" }) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "vue" }) end end, }, From 65246020a6d13ffc57091653a8018684f8ed60c1 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Sat, 19 Oct 2024 12:25:12 -0400 Subject: [PATCH 12/53] fix(nvchad-ui): make sure cache is defined during `build` function for base46 --- lua/astrocommunity/pack/nvchad-ui/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/nvchad-ui/init.lua b/lua/astrocommunity/pack/nvchad-ui/init.lua index 306b6aa15..b34c8b11b 100644 --- a/lua/astrocommunity/pack/nvchad-ui/init.lua +++ b/lua/astrocommunity/pack/nvchad-ui/init.lua @@ -107,7 +107,10 @@ return { "NvChad/base46", lazy = true, init = function() vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46_cache/" end, - build = function() require("base46").load_all_highlights() end, + build = function() + vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46_cache/" + require("base46").load_all_highlights() + end, -- load base46 cache when necessary specs = { { From c36ef5f024c96dc8c3e2db412610afa1fcc8bf69 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Sat, 19 Oct 2024 12:29:11 -0400 Subject: [PATCH 13/53] fix(nvchad-ui): use `disable-tabline` plugin --- lua/astrocommunity/pack/nvchad-ui/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/nvchad-ui/init.lua b/lua/astrocommunity/pack/nvchad-ui/init.lua index b34c8b11b..ebe752e0c 100644 --- a/lua/astrocommunity/pack/nvchad-ui/init.lua +++ b/lua/astrocommunity/pack/nvchad-ui/init.lua @@ -96,7 +96,8 @@ return { }, }, -- Disable unnecessary plugins - { "rebelot/heirline.nvim", opts = { statusline = false, tabline = false } }, + { import = "astrocommunity.recipes.disable-tabline" }, + { "rebelot/heirline.nvim", opts = { statusline = false } }, { "goolord/alpha-nvim", enabled = false }, { "brenoprata10/nvim-highlight-colors", enabled = false }, { "NvChad/nvim-colorizer.lua", enabled = false }, From 682d77f2ba18368d96652f11fee766143e3772f4 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Sat, 19 Oct 2024 12:32:04 -0400 Subject: [PATCH 14/53] fix(nvchad-ui): disable bufferline autocommands --- lua/astrocommunity/pack/nvchad-ui/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/astrocommunity/pack/nvchad-ui/init.lua b/lua/astrocommunity/pack/nvchad-ui/init.lua index ebe752e0c..055ab1619 100644 --- a/lua/astrocommunity/pack/nvchad-ui/init.lua +++ b/lua/astrocommunity/pack/nvchad-ui/init.lua @@ -68,6 +68,7 @@ return { "AstroNvim/astrocore", opts = { options = { opt = { showtabline = 0 } }, + autocmds = { bufferline = false }, mappings = { n = { ["h"] = { From 6c4c08007fe2fc026c0273658a0a50dd8cabb20e Mon Sep 17 00:00:00 2001 From: rami3l Date: Wed, 23 Oct 2024 15:46:16 +0800 Subject: [PATCH 15/53] feat(pack): replace `typst_lsp` with `tinymist` in `typst` pack (#1248) --- lua/astrocommunity/pack/typst/README.md | 2 +- lua/astrocommunity/pack/typst/init.lua | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lua/astrocommunity/pack/typst/README.md b/lua/astrocommunity/pack/typst/README.md index 37f0afd99..7727d4e87 100644 --- a/lua/astrocommunity/pack/typst/README.md +++ b/lua/astrocommunity/pack/typst/README.md @@ -3,7 +3,7 @@ This plugin pack does the following: - Add `typst.vim` for syntax -- Add `typst_lsp` language server +- Add `tinymist` language server - Add `typst-preview.nvim` plugin _Note_: To start the preview - Run TypstPreview diff --git a/lua/astrocommunity/pack/typst/init.lua b/lua/astrocommunity/pack/typst/init.lua index f147f923b..2088c8afc 100644 --- a/lua/astrocommunity/pack/typst/init.lua +++ b/lua/astrocommunity/pack/typst/init.lua @@ -3,20 +3,24 @@ return { { "williamboman/mason-lspconfig.nvim", opts = function(_, opts) - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "typst_lsp" }) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "tinymist" }) end, }, { "WhoIsSethDaniel/mason-tool-installer.nvim", optional = true, opts = function(_, opts) - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "typst-lsp" }) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "tinymist" }) end, }, { "chomosuke/typst-preview.nvim", cmd = { "TypstPreview", "TypstPreviewToggle", "TypstPreviewUpdate" }, build = function() require("typst-preview").update() end, - opts = {}, + opts = { + dependencies_bin = { + tinymist = "tinymist", + }, + }, }, } From 033dde89af5b9d1496c75023a0b2fb06de349941 Mon Sep 17 00:00:00 2001 From: Nicholas Ciechanowski <55490546+ALameLlama@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:33:32 +1100 Subject: [PATCH 16/53] feat(auto-save-nvim)!: swap to okuuva repo (#1239) * feat(auto-save-nvim): swap to okuuva repo * feat(autosave-nvim): move to astrocore autocmd --- .../editing-support/auto-save-nvim/README.md | 2 +- .../editing-support/auto-save-nvim/init.lua | 67 ++++++++++++------- 2 files changed, 43 insertions(+), 26 deletions(-) diff --git a/lua/astrocommunity/editing-support/auto-save-nvim/README.md b/lua/astrocommunity/editing-support/auto-save-nvim/README.md index 8974f6780..b5e5a57c8 100644 --- a/lua/astrocommunity/editing-support/auto-save-nvim/README.md +++ b/lua/astrocommunity/editing-support/auto-save-nvim/README.md @@ -2,4 +2,4 @@ ๐Ÿงถ Automatically save your changes in NeoVim -**Repository:** +**Repository:** diff --git a/lua/astrocommunity/editing-support/auto-save-nvim/init.lua b/lua/astrocommunity/editing-support/auto-save-nvim/init.lua index 4ac684f8a..730b76423 100644 --- a/lua/astrocommunity/editing-support/auto-save-nvim/init.lua +++ b/lua/astrocommunity/editing-support/auto-save-nvim/init.lua @@ -1,30 +1,47 @@ return { - "Pocco81/auto-save.nvim", + "okuuva/auto-save.nvim", event = { "User AstroFile", "InsertEnter" }, - opts = { - callbacks = { - before_saving = function() - -- save global autoformat status - vim.g.OLD_AUTOFORMAT = vim.g.autoformat_enabled - - vim.g.autoformat_enabled = false - vim.g.OLD_AUTOFORMAT_BUFFERS = {} - -- disable all manually enabled buffers - for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do - if vim.b[bufnr].autoformat_enabled then - table.insert(vim.g.OLD_BUFFER_AUTOFORMATS, bufnr) - vim.b[bufnr].autoformat_enabled = false - end - end - end, - after_saving = function() - -- restore global autoformat status - vim.g.autoformat_enabled = vim.g.OLD_AUTOFORMAT - -- reenable all manually enabled buffers - for _, bufnr in ipairs(vim.g.OLD_AUTOFORMAT_BUFFERS or {}) do - vim.b[bufnr].autoformat_enabled = true - end - end, + dependencies = { + "AstroNvim/astrocore", + opts = { + autocmds = { + autoformat_toggle = { + -- Disable autoformat before saving + { + event = "User", + desc = "Disable autoformat before saving", + pattern = "AutoSaveWritePre", + callback = function() + -- Save global autoformat status + vim.g.OLD_AUTOFORMAT = vim.g.autoformat + vim.g.autoformat = false + vim.g.OLD_AUTOFORMAT_BUFFERS = {} + -- Disable all manually enabled buffers + for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do + if vim.b[bufnr].autoformat then + table.insert(vim.g.OLD_AUTOFORMAT_BUFFERS, bufnr) + vim.b[bufnr].autoformat = false + end + end + end, + }, + -- Re-enable autoformat after saving + { + event = "User", + desc = "Re-enable autoformat after saving", + pattern = "AutoSaveWritePost", + callback = function() + -- Restore global autoformat status + vim.g.autoformat = vim.g.OLD_AUTOFORMAT + -- Re-enable all manually enabled buffers + for _, bufnr in ipairs(vim.g.OLD_AUTOFORMAT_BUFFERS or {}) do + vim.b[bufnr].autoformat = true + end + end, + }, + }, + }, }, }, + opts = {}, } From af0f4259d418342d5c6f7951429ac9fd30500cf5 Mon Sep 17 00:00:00 2001 From: xue Date: Wed, 23 Oct 2024 21:29:49 +0800 Subject: [PATCH 17/53] feat(nvim-lint): make autocmd events configurable (#1245) * feat(nvim-lint): make autocmd events configurable * Move nvim-lint autocommand to AstroCore --------- Co-authored-by: Micah Halter --- lua/astrocommunity/lsp/nvim-lint/init.lua | 41 +++++++++++++++-------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/lua/astrocommunity/lsp/nvim-lint/init.lua b/lua/astrocommunity/lsp/nvim-lint/init.lua index 6d3573dd1..5865a2b32 100644 --- a/lua/astrocommunity/lsp/nvim-lint/init.lua +++ b/lua/astrocommunity/lsp/nvim-lint/init.lua @@ -1,3 +1,4 @@ +local lint -- cache for the nvim-lint package ---@type LazySpec return { "mfussenegger/nvim-lint", @@ -5,11 +6,34 @@ return { dependencies = { "williamboman/mason.nvim" }, specs = { { "jay-babu/mason-null-ls.nvim", optional = true, opts = { methods = { diagnostics = false } } }, + { + "AstroNvim/astrocore", + ---@param opts AstroCoreOpts + opts = function(_, opts) + local timer = (vim.uv or vim.loop).new_timer() + if not opts.autocmds then opts.autocmds = {} end + opts.autocmds.auto_lint = { + { + event = { "BufWritePost", "BufReadPost", "InsertLeave", "TextChanged" }, + desc = "Automatically lint with nvim-lint", + callback = function() + -- only run autocommand when nvim-lint is loaded + if lint then + timer:start(100, 0, function() + timer:stop() + vim.schedule(lint.try_lint) + end) + end + end, + }, + } + end, + }, }, opts = {}, config = function(_, opts) - local lint, astrocore = require "lint", require "astrocore" - + local astrocore = require "astrocore" + lint = require "lint" lint.linters_by_ft = opts.linters_by_ft or {} for name, linter in pairs(opts.linters or {}) do local base = lint.linters[name] @@ -39,17 +63,6 @@ return { return linters end) - lint.try_lint() -- start linter immediately - local timer = vim.loop.new_timer() - vim.api.nvim_create_autocmd({ "BufWritePost", "BufReadPost", "InsertLeave", "TextChanged" }, { - group = vim.api.nvim_create_augroup("auto_lint", { clear = true }), - desc = "Automatically try linting", - callback = function() - timer:start(100, 0, function() - timer:stop() - vim.schedule(lint.try_lint) - end) - end, - }) + lint.try_lint() end, } From 711efc3fdeeaad7a5d8bd3f391bcc8115b9a0b4c Mon Sep 17 00:00:00 2001 From: Jay Patel <36803168+jay-babu@users.noreply.github.com> Date: Wed, 23 Oct 2024 09:36:56 -0400 Subject: [PATCH 18/53] feat(full-dadbod): Improve lazy loading (#1246) * feat(pack): lazier load full-dadbod also, have dadbod use nerd fonts. be case insensitive add pg to completion which is a file type used for sql tests * --wip-- * improve spec --------- Co-authored-by: Micah Halter --- lua/astrocommunity/pack/full-dadbod/init.lua | 22 +++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/full-dadbod/init.lua b/lua/astrocommunity/pack/full-dadbod/init.lua index 4e74f6b71..e8d29e633 100644 --- a/lua/astrocommunity/pack/full-dadbod/init.lua +++ b/lua/astrocommunity/pack/full-dadbod/init.lua @@ -4,7 +4,24 @@ return { { "kristijanhusak/vim-dadbod-ui", dependencies = { "tpope/vim-dadbod" }, - event = "VeryLazy", + cmd = { + "DBUI", + "DBUIToggle", + "DBUIAddConnection", + "DBUIFindBuffer", + }, + specs = { + { + "AstroNvim/astrocore", + opts = { + options = { + g = { + db_use_nerd_fonts = vim.g.icons_enabled and 1 or nil, + }, + }, + }, + }, + }, }, { "hrsh7th/nvim-cmp", @@ -27,6 +44,9 @@ return { }, }, }, + filetypes = { + extension = { pg = "sql" }, + }, }, }, }, From 99cd7850eb2a8181a4e6f72f524d6f744b8f8ed6 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 23 Oct 2024 09:41:42 -0400 Subject: [PATCH 19/53] feat(sql): add PostgreSQL support to the SQL pack --- lua/astrocommunity/pack/full-dadbod/init.lua | 3 --- lua/astrocommunity/pack/sql/init.lua | 10 ++++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lua/astrocommunity/pack/full-dadbod/init.lua b/lua/astrocommunity/pack/full-dadbod/init.lua index e8d29e633..f47519b27 100644 --- a/lua/astrocommunity/pack/full-dadbod/init.lua +++ b/lua/astrocommunity/pack/full-dadbod/init.lua @@ -44,9 +44,6 @@ return { }, }, }, - filetypes = { - extension = { pg = "sql" }, - }, }, }, }, diff --git a/lua/astrocommunity/pack/sql/init.lua b/lua/astrocommunity/pack/sql/init.lua index 219b648eb..d4515c168 100644 --- a/lua/astrocommunity/pack/sql/init.lua +++ b/lua/astrocommunity/pack/sql/init.lua @@ -1,4 +1,14 @@ return { + { + "AstroNvim/astrocore", + opts = { + filetypes = { + extension = { + pg = "sql", + }, + }, + }, + }, { "nvim-treesitter/nvim-treesitter", optional = true, From 58863a1ebb7daaef30fc4f174fc429b3631a6de6 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 24 Oct 2024 17:00:56 -0400 Subject: [PATCH 20/53] feat(pack): add Nextflow language pack --- lua/astrocommunity/pack/nextflow/README.md | 7 +++++++ lua/astrocommunity/pack/nextflow/init.lua | 21 +++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 lua/astrocommunity/pack/nextflow/README.md create mode 100644 lua/astrocommunity/pack/nextflow/init.lua diff --git a/lua/astrocommunity/pack/nextflow/README.md b/lua/astrocommunity/pack/nextflow/README.md new file mode 100644 index 000000000..33d186243 --- /dev/null +++ b/lua/astrocommunity/pack/nextflow/README.md @@ -0,0 +1,7 @@ +# Nextflow Language Pack + +This plugin pack does the following: + +- Sets up `nextflow` filetype +- Adds `nextflow` treesitter parsers +- Adds `nextflow` icons to `mini.icons` diff --git a/lua/astrocommunity/pack/nextflow/init.lua b/lua/astrocommunity/pack/nextflow/init.lua new file mode 100644 index 000000000..dc7b127fe --- /dev/null +++ b/lua/astrocommunity/pack/nextflow/init.lua @@ -0,0 +1,21 @@ +---@type LazySpec +return { + { + "AstroNvim/astrocore", + ---@type AstroCoreOpts + opts = { filetypes = { extension = { + nf = "nextflow", + ["nf.test"] = "nextflow", + } } }, + }, + { "nextflow-io/vim-language-nextflow", ft = "nextflow" }, + { + "echasnovski/mini.icons", + optional = true, + opts = { + filetype = { + nextflow = { glyph = "๓ฐ‰›", hl = "MiniIconsGreen" }, + }, + }, + }, +} From 1d221929e530ca20ee81155afeba6620af2cf3be Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 24 Oct 2024 23:46:10 -0400 Subject: [PATCH 21/53] feat(nextflow): add snippets from VS Code plugin --- lua/astrocommunity/pack/nextflow/README.md | 3 ++- lua/astrocommunity/pack/nextflow/init.lua | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/nextflow/README.md b/lua/astrocommunity/pack/nextflow/README.md index 33d186243..6ab3a7c6a 100644 --- a/lua/astrocommunity/pack/nextflow/README.md +++ b/lua/astrocommunity/pack/nextflow/README.md @@ -3,5 +3,6 @@ This plugin pack does the following: - Sets up `nextflow` filetype -- Adds `nextflow` treesitter parsers +- Adds [`vim-language-nextflow`](https://github.com/nextflow-io/vim-language-nextflow) for syntax highlighting +- Adds snippets to LuaSnip from [`vscode-language-nextflow`](https://github.com/nextflow-io/vscode-language-nextflow) - Adds `nextflow` icons to `mini.icons` diff --git a/lua/astrocommunity/pack/nextflow/init.lua b/lua/astrocommunity/pack/nextflow/init.lua index dc7b127fe..44f3a35c5 100644 --- a/lua/astrocommunity/pack/nextflow/init.lua +++ b/lua/astrocommunity/pack/nextflow/init.lua @@ -9,6 +9,20 @@ return { } } }, }, { "nextflow-io/vim-language-nextflow", ft = "nextflow" }, + { + "L3MON4D3/LuaSnip", + optional = true, + specs = { + "nextflow-io/vscode-language-nextflow", + ft = "nextflow", + dependencies = { "L3MON4D3/LuaSnip" }, + config = function(plugin) + require("luasnip.loaders.from_vscode").lazy_load { + paths = { plugin.dir }, + } + end, + }, + }, { "echasnovski/mini.icons", optional = true, From 53b3aa12bfc857db84e6a7d569a9f103feea779d Mon Sep 17 00:00:00 2001 From: taaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassssssssssssssssssssssssssssssssssssssssssssssssssssky <75871323+taskylizard@users.noreply.github.com> Date: Sat, 26 Oct 2024 23:15:07 +0100 Subject: [PATCH 22/53] docs(executor-nvim): add missing readme for executor.nvim (#1252) chore: add missing readme for executor.nvim --- lua/astrocommunity/code-runner/executor-nvim/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/astrocommunity/code-runner/executor-nvim/README.md b/lua/astrocommunity/code-runner/executor-nvim/README.md index e69de29bb..7cab447aa 100644 --- a/lua/astrocommunity/code-runner/executor-nvim/README.md +++ b/lua/astrocommunity/code-runner/executor-nvim/README.md @@ -0,0 +1,5 @@ +# Executor.nvim + +Executor.nvim is a plugin that allows you to run command line tasks in the background and be notified of results. + +**Repository:** From a795c7c6687010b53e9e6de12a9e9a6bc3202431 Mon Sep 17 00:00:00 2001 From: Tony Date: Sun, 27 Oct 2024 22:40:42 +0100 Subject: [PATCH 23/53] docs(cmp-tmux): Fix wrong title in cmp-tmux readme (#1253) docs(cmp-tmux): wrong title in cmp-tmux readme --- lua/astrocommunity/completion/cmp-tmux/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/completion/cmp-tmux/README.md b/lua/astrocommunity/completion/cmp-tmux/README.md index 98f43e138..ab3838719 100644 --- a/lua/astrocommunity/completion/cmp-tmux/README.md +++ b/lua/astrocommunity/completion/cmp-tmux/README.md @@ -1,4 +1,4 @@ -# cmp-spell +# cmp-tmux Tmux completion source for nvim-cmp. From c4903b23b75c0a429ebe02e1d31d1a8316d9691e Mon Sep 17 00:00:00 2001 From: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Date: Sun, 27 Oct 2024 22:43:47 +0100 Subject: [PATCH 24/53] feat(nvim-devdocs): Update repository to a more up to date fork (#1254) * Update init.lua * Update README.md --- lua/astrocommunity/editing-support/nvim-devdocs/README.md | 2 +- lua/astrocommunity/editing-support/nvim-devdocs/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/editing-support/nvim-devdocs/README.md b/lua/astrocommunity/editing-support/nvim-devdocs/README.md index ba222a1df..b1d6d66af 100644 --- a/lua/astrocommunity/editing-support/nvim-devdocs/README.md +++ b/lua/astrocommunity/editing-support/nvim-devdocs/README.md @@ -1,6 +1,6 @@ # nvim-devdocs -**Repository**: https://github.com/luckasRanarison/nvim-devdocs +**Repository**: https://github.com/warpaint9299/nvim-devdocs nvim-devdocs is a plugin which brings [DevDocs][devdocs-site] documentations into neovim. Install, search and preview documentations directly inside neovim in markdown format with telescope integration. diff --git a/lua/astrocommunity/editing-support/nvim-devdocs/init.lua b/lua/astrocommunity/editing-support/nvim-devdocs/init.lua index 7400683b8..ef3d85c95 100644 --- a/lua/astrocommunity/editing-support/nvim-devdocs/init.lua +++ b/lua/astrocommunity/editing-support/nvim-devdocs/init.lua @@ -1,7 +1,7 @@ local prefix = "f" return { - "luckasRanarison/nvim-devdocs", + "warpaint9299/nvim-devdocs", dependencies = { "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim", From 4bb0fa7956100a9fa527a41613197d255de47fbd Mon Sep 17 00:00:00 2001 From: Nicholas Ciechanowski <55490546+ALameLlama@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:03:13 +1100 Subject: [PATCH 25/53] feat(diagnostics): add `tiny-inline-diagnostic-nvim` (#1251) feat(tiny-inline-diagnostic-nvim): add `tiny-inline-diagnostic-nvim` --- .../tiny-inline-diagnostic-nvim/README.md | 7 +++++++ .../tiny-inline-diagnostic-nvim/init.lua | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 lua/astrocommunity/diagnostics/tiny-inline-diagnostic-nvim/README.md create mode 100644 lua/astrocommunity/diagnostics/tiny-inline-diagnostic-nvim/init.lua diff --git a/lua/astrocommunity/diagnostics/tiny-inline-diagnostic-nvim/README.md b/lua/astrocommunity/diagnostics/tiny-inline-diagnostic-nvim/README.md new file mode 100644 index 000000000..5416fc239 --- /dev/null +++ b/lua/astrocommunity/diagnostics/tiny-inline-diagnostic-nvim/README.md @@ -0,0 +1,7 @@ +# tiny-inline-diagnostic.nvim + +A Neovim plugin that display prettier diagnostic messages. Display one line diagnostic messages where the cursor is, with icons and colors. + +**Repository:** + +_Note_: This sets the Astrocore diagnostics to level 2 diff --git a/lua/astrocommunity/diagnostics/tiny-inline-diagnostic-nvim/init.lua b/lua/astrocommunity/diagnostics/tiny-inline-diagnostic-nvim/init.lua new file mode 100644 index 000000000..82e225bca --- /dev/null +++ b/lua/astrocommunity/diagnostics/tiny-inline-diagnostic-nvim/init.lua @@ -0,0 +1,14 @@ +return { + "rachartier/tiny-inline-diagnostic.nvim", + event = "VeryLazy", + dependencies = { + "astronvim/astrocore", + opts = { + diagnostics = { + -- Disable diagnostics virtual text to prevent duplicates + virtual_text = false, + }, + }, + }, + opts = {}, +} From 6166e840d19b0f6665c8e02c76cba500fa4179b0 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 29 Oct 2024 15:44:32 -0400 Subject: [PATCH 26/53] fix(nextflow): pin `vscode-language-nextflow` --- lua/astrocommunity/pack/nextflow/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/astrocommunity/pack/nextflow/init.lua b/lua/astrocommunity/pack/nextflow/init.lua index 44f3a35c5..fecd04ade 100644 --- a/lua/astrocommunity/pack/nextflow/init.lua +++ b/lua/astrocommunity/pack/nextflow/init.lua @@ -14,6 +14,7 @@ return { optional = true, specs = { "nextflow-io/vscode-language-nextflow", + commit = "efc410e46db3518ec7693668e159fb7b148a0e1a", ft = "nextflow", dependencies = { "L3MON4D3/LuaSnip" }, config = function(plugin) From fb039b59673d4e6138279c85956bb8aabc6eaa56 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 6 Nov 2024 10:48:43 -0500 Subject: [PATCH 27/53] feat(nextflow): add configuration for the Nextflow Language Server --- lua/astrocommunity/pack/nextflow/README.md | 30 ++++++++++++++++- lua/astrocommunity/pack/nextflow/init.lua | 38 +++++++++++++++------- 2 files changed, 55 insertions(+), 13 deletions(-) diff --git a/lua/astrocommunity/pack/nextflow/README.md b/lua/astrocommunity/pack/nextflow/README.md index 6ab3a7c6a..090a36136 100644 --- a/lua/astrocommunity/pack/nextflow/README.md +++ b/lua/astrocommunity/pack/nextflow/README.md @@ -4,5 +4,33 @@ This plugin pack does the following: - Sets up `nextflow` filetype - Adds [`vim-language-nextflow`](https://github.com/nextflow-io/vim-language-nextflow) for syntax highlighting -- Adds snippets to LuaSnip from [`vscode-language-nextflow`](https://github.com/nextflow-io/vscode-language-nextflow) +- Adds configuration for [`nextflow_ls`](https://github.com/nextflow-io/language-server) to `lspconfig` + - See below for instructions on enabling it - Adds `nextflow` icons to `mini.icons` + +## Enabling the Nextflow Language Server + +While the Nextflow language server is young in development it is yet to be added to Mason or `nvim-lspconfig` so it currently requires manual configuration to get up and running. + +### Requirements + +- Java 17 or later +- `language-server-all.jar` downloaded from the [Nextflow Language Server Releases](https://github.com/nextflow-io/language-server/releases) or built from the source + +### Add to your `plugins/` + +```lua +return { + "AstroNvim/astrolsp", + opts = { + -- This line enables the setup of the Nextfow language server + servers = { "nextflow_ls" }, + configs = { + -- Must set the command with the path to your JAR file + nextflow_ls = { + cmd = { "java", "-jar", "" }, + }, + }, + }, +} +``` diff --git a/lua/astrocommunity/pack/nextflow/init.lua b/lua/astrocommunity/pack/nextflow/init.lua index fecd04ade..131a53f16 100644 --- a/lua/astrocommunity/pack/nextflow/init.lua +++ b/lua/astrocommunity/pack/nextflow/init.lua @@ -10,18 +10,32 @@ return { }, { "nextflow-io/vim-language-nextflow", ft = "nextflow" }, { - "L3MON4D3/LuaSnip", - optional = true, - specs = { - "nextflow-io/vscode-language-nextflow", - commit = "efc410e46db3518ec7693668e159fb7b148a0e1a", - ft = "nextflow", - dependencies = { "L3MON4D3/LuaSnip" }, - config = function(plugin) - require("luasnip.loaders.from_vscode").lazy_load { - paths = { plugin.dir }, - } - end, + "AstroNvim/astrolsp", + ---@type AstroLSPOpts + opts = { + ---@diagnostic disable-next-line: missing-fields + config = { + nextflow_ls = { + cmd = { + "java", + "-jar", + "nextflow-language-server.jar", + }, + filetypes = { "nextflow" }, + root_dir = function(fname) + local util = require "lspconfig.util" + return util.root_pattern "nextflow.config"(fname) or util.find_git_ancestor(fname) + end, + settings = { + nextflow = { + suppressFutureWarnings = true, + files = { + exclude = { ".git", ".nf-test", "work" }, + }, + }, + }, + }, + }, }, }, { From 7a86fadda435fdc4d3431577c53eaf102ab75d62 Mon Sep 17 00:00:00 2001 From: rami3l Date: Thu, 7 Nov 2024 10:26:06 +0800 Subject: [PATCH 28/53] feat(moonbit): use `moonbit.nvim` from `moonbit-community` (#1260) --- lua/astrocommunity/pack/moonbit/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/moonbit/init.lua b/lua/astrocommunity/pack/moonbit/init.lua index f70e9e999..e6fc4acd5 100644 --- a/lua/astrocommunity/pack/moonbit/init.lua +++ b/lua/astrocommunity/pack/moonbit/init.lua @@ -1,6 +1,6 @@ return { { - "tonyfettes/moonbit.nvim", + "moonbit-community/moonbit.nvim", ft = "moonbit", -- uncomment when mason support added to make sure command is available -- dependencies = { From 9c67bb9b6bd5fa2997dfcffc12faf8914d60b39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C5=9Een?= Date: Thu, 7 Nov 2024 08:38:22 +0300 Subject: [PATCH 29/53] feat(pack): add csharp support with `omnisharp` (#1241) feat(cs-omnisharp): add csharp support with omnisharp --- .../pack/cs-omnisharp/README.md | 12 +++ lua/astrocommunity/pack/cs-omnisharp/init.lua | 74 +++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 lua/astrocommunity/pack/cs-omnisharp/README.md create mode 100644 lua/astrocommunity/pack/cs-omnisharp/init.lua diff --git a/lua/astrocommunity/pack/cs-omnisharp/README.md b/lua/astrocommunity/pack/cs-omnisharp/README.md new file mode 100644 index 000000000..c12c56dd5 --- /dev/null +++ b/lua/astrocommunity/pack/cs-omnisharp/README.md @@ -0,0 +1,12 @@ +# C# Language Pack + +**Requirements:** `dotnet` must be in your `PATH` and executable + +This plugin pack does the following: + +- Adds `c_sharp` Treesitter parsers +- Adds `omnisharp` language server +- Adds [`omnisharp-extended-lsp.nvim`](https://github.com/Hoffs/omnisharp-extended-lsp.nvim) for better go to definition/type definition +- Adds the following `null-ls` sources: + - [csharpier](https://github.com/belav/csharpier) +- Adds `coreclr` debug adapters for nvim-dap diff --git a/lua/astrocommunity/pack/cs-omnisharp/init.lua b/lua/astrocommunity/pack/cs-omnisharp/init.lua new file mode 100644 index 000000000..347b24586 --- /dev/null +++ b/lua/astrocommunity/pack/cs-omnisharp/init.lua @@ -0,0 +1,74 @@ +return { + -- CSharp support + { + "nvim-treesitter/nvim-treesitter", + optional = true, + opts = function(_, opts) + if opts.ensure_installed ~= "all" then + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "c_sharp" }) + end + end, + }, + { + "jay-babu/mason-null-ls.nvim", + optional = true, + opts = function(_, opts) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "csharpier" }) + end, + }, + { + "williamboman/mason-lspconfig.nvim", + optional = true, + opts = function(_, opts) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "omnisharp" }) + end, + }, + { + "Hoffs/omnisharp-extended-lsp.nvim", + dependencies = { + { + "AstroNvim/astrolsp", + opts = { + config = { + csharp_ls = { + handlers = { + ["textDocument/definition"] = function(...) require("omnisharp_extended").definition_handler(...) end, + ["textDocument/typeDefinition"] = function(...) + require("omnisharp_extended").type_definition_handler(...) + end, + ["textDocument/references"] = function(...) require("omnisharp_extended").references_handler(...) end, + ["textDocument/implementation"] = function(...) + require("omnisharp_extended").implementation_handler(...) + end, + }, + }, + }, + }, + }, + }, + }, + { + "jay-babu/mason-nvim-dap.nvim", + optional = true, + opts = function(_, opts) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "coreclr" }) + end, + }, + { + "WhoIsSethDaniel/mason-tool-installer.nvim", + optional = true, + opts = function(_, opts) + opts.ensure_installed = + require("astrocore").list_insert_unique(opts.ensure_installed, { "omnisharp", "csharpier", "netcoredbg" }) + end, + }, + { + "nvim-neotest/neotest", + optional = true, + dependencies = { "Issafalcon/neotest-dotnet", config = function() end }, + opts = function(_, opts) + if not opts.adapters then opts.adapters = {} end + table.insert(opts.adapters, require "neotest-dotnet"(require("astrocore").plugin_opts "neotest-dotnet")) + end, + }, +} From c811f1787ae4538b66dc3d38adb0eb5febbee9b0 Mon Sep 17 00:00:00 2001 From: rami3l Date: Thu, 7 Nov 2024 20:09:32 +0800 Subject: [PATCH 30/53] feat(moonbit): add `neotest` integration to the `moonbit` pack (#1261) --- lua/astrocommunity/pack/moonbit/README.md | 1 + lua/astrocommunity/pack/moonbit/init.lua | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/lua/astrocommunity/pack/moonbit/README.md b/lua/astrocommunity/pack/moonbit/README.md index fa6ef3015..5a40763b5 100644 --- a/lua/astrocommunity/pack/moonbit/README.md +++ b/lua/astrocommunity/pack/moonbit/README.md @@ -10,3 +10,4 @@ This plugin pack does the following: - Adds [`moonbit.nvim`](https://github.com/tonyfettes/moonbit.nvim) plugin which adds - Adds `moonbit` Treesitter parser - Adds `moonbit-lsp` language server + - Adds `neotest-moonbit` neotest adapter diff --git a/lua/astrocommunity/pack/moonbit/init.lua b/lua/astrocommunity/pack/moonbit/init.lua index e6fc4acd5..1bafdf99f 100644 --- a/lua/astrocommunity/pack/moonbit/init.lua +++ b/lua/astrocommunity/pack/moonbit/init.lua @@ -18,6 +18,15 @@ return { end end, }, + { + "nvim-neotest/neotest", + optional = true, + dependencies = { "moonbit-community/moonbit.nvim" }, + opts = function(_, opts) + if not opts.adapters then opts.adapters = {} end + table.insert(opts.adapters, require "neotest-moonbit") + end, + }, -- uncomment if/when moonbit-lsp is added to lspconfig and mason-lspconfig -- { -- "williamboman/mason-lspconfig.nvim", From ec4d829f5c6c4f2adafa64ff124548ce00f81e5c Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 7 Nov 2024 08:47:09 -0500 Subject: [PATCH 31/53] refactor(nextflow): `nextflow_ls` merged upstream --- lua/astrocommunity/pack/nextflow/init.lua | 29 ----------------------- 1 file changed, 29 deletions(-) diff --git a/lua/astrocommunity/pack/nextflow/init.lua b/lua/astrocommunity/pack/nextflow/init.lua index 131a53f16..dc7b127fe 100644 --- a/lua/astrocommunity/pack/nextflow/init.lua +++ b/lua/astrocommunity/pack/nextflow/init.lua @@ -9,35 +9,6 @@ return { } } }, }, { "nextflow-io/vim-language-nextflow", ft = "nextflow" }, - { - "AstroNvim/astrolsp", - ---@type AstroLSPOpts - opts = { - ---@diagnostic disable-next-line: missing-fields - config = { - nextflow_ls = { - cmd = { - "java", - "-jar", - "nextflow-language-server.jar", - }, - filetypes = { "nextflow" }, - root_dir = function(fname) - local util = require "lspconfig.util" - return util.root_pattern "nextflow.config"(fname) or util.find_git_ancestor(fname) - end, - settings = { - nextflow = { - suppressFutureWarnings = true, - files = { - exclude = { ".git", ".nf-test", "work" }, - }, - }, - }, - }, - }, - }, - }, { "echasnovski/mini.icons", optional = true, From 95cfc4ca1d35f6fcf4e367442884dc95ce255193 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 7 Nov 2024 08:59:10 -0500 Subject: [PATCH 32/53] feat(rust): use crates in process LSP --- lua/astrocommunity/pack/rust/init.lua | 32 ++++++--------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/lua/astrocommunity/pack/rust/init.lua b/lua/astrocommunity/pack/rust/init.lua index d626042bf..936549e40 100644 --- a/lua/astrocommunity/pack/rust/init.lua +++ b/lua/astrocommunity/pack/rust/init.lua @@ -48,35 +48,17 @@ local pack = { }, { "Saecki/crates.nvim", - lazy = true, - dependencies = { - "AstroNvim/astrocore", - opts = { - autocmds = { - CmpSourceCargo = { - { - event = "BufRead", - desc = "Load crates.nvim into Cargo buffers", - pattern = "Cargo.toml", - callback = function() - require("cmp").setup.buffer { sources = { { name = "crates" } } } - require "crates" - end, - }, - }, - }, - }, - }, + event = { "BufRead Cargo.toml" }, opts = { completion = { - cmp = { enabled = true }, - crates = { - enabled = true, - }, + crates = { enabled = true }, }, - null_ls = { + lsp = { enabled = true, - name = "crates.nvim", + on_attach = function(...) require("astrolsp").on_attach(...) end, + actions = true, + completion = true, + hover = true, }, }, }, From 580686c9bd2396e4a3c7bb1fd071df2924e7797a Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 7 Nov 2024 09:23:47 -0500 Subject: [PATCH 33/53] fix(blink-cmp): update keymaps and add lazydev support --- .../completion/blink-cmp/init.lua | 71 +++++++++++++++++-- 1 file changed, 64 insertions(+), 7 deletions(-) diff --git a/lua/astrocommunity/completion/blink-cmp/init.lua b/lua/astrocommunity/completion/blink-cmp/init.lua index dcb0c32fd..737ae98cb 100644 --- a/lua/astrocommunity/completion/blink-cmp/init.lua +++ b/lua/astrocommunity/completion/blink-cmp/init.lua @@ -1,16 +1,53 @@ +local function has_words_before() + local line, col = (unpack or table.unpack)(vim.api.nvim_win_get_cursor(0)) + return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match "%s" == nil +end + return { "Saghen/blink.cmp", event = "InsertEnter", - version = "v0.*", + version = "*", dependencies = { "rafamadriz/friendly-snippets" }, + opts_extend = { "sources.completion.enabled_providers" }, opts = { + -- remember to enable your providers here + sources = { completion = { enabled_providers = { "lsp", "path", "snippets", "buffer" } } }, + -- experimental auto-brackets support + accept = { auto_brackets = { enabled = true } }, keymap = { - show = { "", "", "" }, - accept = { "", "" }, - select_prev = { "", "", "" }, - select_next = { "", "", "" }, - scroll_documentation_up = "", - scroll_documentation_down = "", + [""] = { "show", "show_documentation", "hide_documentation" }, + [""] = { "select_prev", "fallback" }, + [""] = { "select_next", "fallback" }, + [""] = { "select_next", "show" }, + [""] = { "select_prev", "show" }, + [""] = { "select_next", "fallback" }, + [""] = { "select_prev", "fallback" }, + [""] = { "scroll_documentation_up", "fallback" }, + [""] = { "scroll_documentation_down", "fallback" }, + [""] = { "hide", "fallback" }, + [""] = { "accept", "fallback" }, + [""] = { + function(cmp) + if cmp.windows.autocomplete.win:is_open() then + return cmp.select_next() + elseif cmp.is_in_snippet() then + return cmp.snippet_forward() + elseif has_words_before() then + return cmp.show() + end + end, + "fallback", + }, + [""] = { + function(cmp) + if cmp.windows.autocomplete.win:is_open() then + return cmp.select_prev() + elseif cmp.is_in_snippet() then + return cmp.snippet_backward() + end + end, + "fallback", + }, }, windows = { autocomplete = { @@ -29,6 +66,26 @@ return { }, }, specs = { + { + "folke/lazydev.nvim", + optional = true, + specs = { + { + "Saghen/blink.cmp", + opts = { + sources = { + -- add lazydev to your completion providers + completion = { enabled_providers = { "lazydev" } }, + providers = { + -- dont show LuaLS require statements when lazydev has items + lsp = { fallback_for = { "lazydev" } }, + lazydev = { name = "LazyDev", module = "lazydev.integrations.blink" }, + }, + }, + }, + }, + }, + }, -- disable built in completion plugins { "hrsh7th/nvim-cmp", enabled = false }, { "rcarriga/cmp-dap", enabled = false }, From 2e2784a1a1c817680e9dc8e802a4ba813a2bba97 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Fri, 8 Nov 2024 10:34:35 -0500 Subject: [PATCH 34/53] fix(blink-cmp): check for the existence of `lazydev` blink integration support --- .../completion/blink-cmp/init.lua | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/lua/astrocommunity/completion/blink-cmp/init.lua b/lua/astrocommunity/completion/blink-cmp/init.lua index 737ae98cb..f6948ae34 100644 --- a/lua/astrocommunity/completion/blink-cmp/init.lua +++ b/lua/astrocommunity/completion/blink-cmp/init.lua @@ -72,17 +72,21 @@ return { specs = { { "Saghen/blink.cmp", - opts = { - sources = { - -- add lazydev to your completion providers - completion = { enabled_providers = { "lazydev" } }, - providers = { - -- dont show LuaLS require statements when lazydev has items - lsp = { fallback_for = { "lazydev" } }, - lazydev = { name = "LazyDev", module = "lazydev.integrations.blink" }, - }, - }, - }, + opts = function(_, opts) + if pcall(require, "lazydev.integrations.blink") then + return require("astrocore").extend_tbl(opts, { + sources = { + -- add lazydev to your completion providers + completion = { enabled_providers = { "lazydev" } }, + providers = { + -- dont show LuaLS require statements when lazydev has items + lsp = { fallback_for = { "lazydev" } }, + lazydev = { name = "LazyDev", module = "lazydev.integrations.blink" }, + }, + }, + }) + end + end, }, }, }, From 4f1af4b86f97c57f383e29d990ab962867a3546c Mon Sep 17 00:00:00 2001 From: rami3l Date: Mon, 11 Nov 2024 19:01:49 +0800 Subject: [PATCH 35/53] fix(harper): fix typo in `harper`'s `mason-lspconfig` override (#1266) fix(pack): fix typo in `harper`'s `mason-lspconfig` override According to https://github.com/williamboman/mason-lspconfig.nvim, the correct identifier for this language server in `mason-lspconfig` is `harper_ls`, not `harper-ls`. --- lua/astrocommunity/pack/harper/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/harper/init.lua b/lua/astrocommunity/pack/harper/init.lua index e17c5887e..ad2c54762 100644 --- a/lua/astrocommunity/pack/harper/init.lua +++ b/lua/astrocommunity/pack/harper/init.lua @@ -26,7 +26,7 @@ return { { "williamboman/mason-lspconfig.nvim", opts = function(_, opts) - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "harper-ls" }) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "harper_ls" }) end, }, { From 97ef9556767611f398d636d0dd59714a7538f69b Mon Sep 17 00:00:00 2001 From: Nicholas Ciechanowski <55490546+ALameLlama@users.noreply.github.com> Date: Mon, 11 Nov 2024 21:15:07 +1000 Subject: [PATCH 36/53] fix(auto-save-nvim): not restoring buffer settings (#1265) --- lua/astrocommunity/editing-support/auto-save-nvim/init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/editing-support/auto-save-nvim/init.lua b/lua/astrocommunity/editing-support/auto-save-nvim/init.lua index 730b76423..10ea3435a 100644 --- a/lua/astrocommunity/editing-support/auto-save-nvim/init.lua +++ b/lua/astrocommunity/editing-support/auto-save-nvim/init.lua @@ -15,14 +15,17 @@ return { -- Save global autoformat status vim.g.OLD_AUTOFORMAT = vim.g.autoformat vim.g.autoformat = false - vim.g.OLD_AUTOFORMAT_BUFFERS = {} + + local old_autoformat_buffers = {} -- Disable all manually enabled buffers for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do if vim.b[bufnr].autoformat then - table.insert(vim.g.OLD_AUTOFORMAT_BUFFERS, bufnr) + table.insert(old_autoformat_buffers, bufnr) vim.b[bufnr].autoformat = false end end + + vim.g.OLD_AUTOFORMAT_BUFFERS = old_autoformat_buffers end, }, -- Re-enable autoformat after saving From ea0b4c3e18e9191334c3efa2b6836464f4ea41b1 Mon Sep 17 00:00:00 2001 From: AstroNvim Bot Date: Wed, 13 Nov 2024 04:48:18 -0500 Subject: [PATCH 37/53] chore(main): release 15.0.0 (#1244) --- CHANGELOG.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f385d5241..a92903fb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,48 @@ # Changelog +## [15.0.0](https://github.com/AstroNvim/astrocommunity/compare/v14.1.0...v15.0.0) (2024-11-11) + + +### โš  BREAKING CHANGES + +* **auto-save-nvim:** swap to okuuva repo ([#1239](https://github.com/AstroNvim/astrocommunity/issues/1239)) + +### Features + +* **auto-save-nvim:** swap to okuuva repo ([#1239](https://github.com/AstroNvim/astrocommunity/issues/1239)) ([033dde8](https://github.com/AstroNvim/astrocommunity/commit/033dde89af5b9d1496c75023a0b2fb06de349941)) +* **cs-omnisharp:** add csharp support with omnisharp ([9c67bb9](https://github.com/AstroNvim/astrocommunity/commit/9c67bb9b6bd5fa2997dfcffc12faf8914d60b39b)) +* **diagnostics:** add `tiny-inline-diagnostic-nvim` ([#1251](https://github.com/AstroNvim/astrocommunity/issues/1251)) ([4bb0fa7](https://github.com/AstroNvim/astrocommunity/commit/4bb0fa7956100a9fa527a41613197d255de47fbd)) +* **full-dadbod:** Improve lazy loading ([#1246](https://github.com/AstroNvim/astrocommunity/issues/1246)) ([711efc3](https://github.com/AstroNvim/astrocommunity/commit/711efc3fdeeaad7a5d8bd3f391bcc8115b9a0b4c)) +* **html-css:** add full PostCSS support ([7c489c2](https://github.com/AstroNvim/astrocommunity/commit/7c489c22b137dd46f2f375de45c957794098dd73)) +* **moonbit:** add `neotest` integration to the `moonbit` pack ([#1261](https://github.com/AstroNvim/astrocommunity/issues/1261)) ([c811f17](https://github.com/AstroNvim/astrocommunity/commit/c811f1787ae4538b66dc3d38adb0eb5febbee9b0)) +* **moonbit:** use `moonbit.nvim` from `moonbit-community` ([#1260](https://github.com/AstroNvim/astrocommunity/issues/1260)) ([7a86fad](https://github.com/AstroNvim/astrocommunity/commit/7a86fadda435fdc4d3431577c53eaf102ab75d62)) +* **nextflow:** add configuration for the Nextflow Language Server ([fb039b5](https://github.com/AstroNvim/astrocommunity/commit/fb039b59673d4e6138279c85956bb8aabc6eaa56)) +* **nextflow:** add snippets from VS Code plugin ([1d22192](https://github.com/AstroNvim/astrocommunity/commit/1d221929e530ca20ee81155afeba6620af2cf3be)) +* **nvim-devdocs:** Update repository to a more up to date fork ([#1254](https://github.com/AstroNvim/astrocommunity/issues/1254)) ([c4903b2](https://github.com/AstroNvim/astrocommunity/commit/c4903b23b75c0a429ebe02e1d31d1a8316d9691e)) +* **nvim-lint:** make autocmd events configurable ([#1245](https://github.com/AstroNvim/astrocommunity/issues/1245)) ([af0f425](https://github.com/AstroNvim/astrocommunity/commit/af0f4259d418342d5c6f7951429ac9fd30500cf5)) +* **pack:** add csharp support with `omnisharp` ([#1241](https://github.com/AstroNvim/astrocommunity/issues/1241)) ([9c67bb9](https://github.com/AstroNvim/astrocommunity/commit/9c67bb9b6bd5fa2997dfcffc12faf8914d60b39b)) +* **pack:** add Nextflow language pack ([58863a1](https://github.com/AstroNvim/astrocommunity/commit/58863a1ebb7daaef30fc4f174fc429b3631a6de6)) +* **pack:** replace `typst_lsp` with `tinymist` in `typst` pack ([#1248](https://github.com/AstroNvim/astrocommunity/issues/1248)) ([6c4c080](https://github.com/AstroNvim/astrocommunity/commit/6c4c08007fe2fc026c0273658a0a50dd8cabb20e)) +* **rust:** use crates in process LSP ([95cfc4c](https://github.com/AstroNvim/astrocommunity/commit/95cfc4ca1d35f6fcf4e367442884dc95ce255193)) +* **sql:** add PostgreSQL support to the SQL pack ([99cd785](https://github.com/AstroNvim/astrocommunity/commit/99cd7850eb2a8181a4e6f72f524d6f744b8f8ed6)) +* **tiny-inline-diagnostic-nvim:** add `tiny-inline-diagnostic-nvim` ([4bb0fa7](https://github.com/AstroNvim/astrocommunity/commit/4bb0fa7956100a9fa527a41613197d255de47fbd)) + + +### Bug Fixes + +* **astro:** fix various bugs and enabled better usage of other packs ([de04a80](https://github.com/AstroNvim/astrocommunity/commit/de04a80ba404adbd5a90593829dbe3e857818252)) +* **auto-save-nvim:** not restoring buffer settings ([#1265](https://github.com/AstroNvim/astrocommunity/issues/1265)) ([97ef955](https://github.com/AstroNvim/astrocommunity/commit/97ef9556767611f398d636d0dd59714a7538f69b)) +* **blink-cmp:** check for the existence of `lazydev` blink integration support ([2e2784a](https://github.com/AstroNvim/astrocommunity/commit/2e2784a1a1c817680e9dc8e802a4ba813a2bba97)) +* **blink-cmp:** update keymaps and add lazydev support ([580686c](https://github.com/AstroNvim/astrocommunity/commit/580686c9bd2396e4a3c7bb1fd071df2924e7797a)) +* **harper:** fix typo in `harper`'s `mason-lspconfig` override ([#1266](https://github.com/AstroNvim/astrocommunity/issues/1266)) ([4f1af4b](https://github.com/AstroNvim/astrocommunity/commit/4f1af4b86f97c57f383e29d990ab962867a3546c)) +* **nextflow:** pin `vscode-language-nextflow` ([6166e84](https://github.com/AstroNvim/astrocommunity/commit/6166e840d19b0f6665c8e02c76cba500fa4179b0)) +* **nvchad-ui:** disable bufferline autocommands ([682d77f](https://github.com/AstroNvim/astrocommunity/commit/682d77f2ba18368d96652f11fee766143e3772f4)) +* **nvchad-ui:** make sure cache is defined during `build` function for base46 ([6524602](https://github.com/AstroNvim/astrocommunity/commit/65246020a6d13ffc57091653a8018684f8ed60c1)) +* **nvchad-ui:** use `disable-tabline` plugin ([c36ef5f](https://github.com/AstroNvim/astrocommunity/commit/c36ef5f024c96dc8c3e2db412610afa1fcc8bf69)) +* **svelte:** import the typescript pack for more support ([e8933e9](https://github.com/AstroNvim/astrocommunity/commit/e8933e9c5318c05139991d5b328115b26cf90679)) +* **typescript:** import the html and css pack for full ecma support ([b3da393](https://github.com/AstroNvim/astrocommunity/commit/b3da393e6735d96ae070c3ac7f0f685b4a26e51b)) +* **vue:** scss support moved upstream to other packs ([701ea8a](https://github.com/AstroNvim/astrocommunity/commit/701ea8a2a29d9ab04f66586ecd5fd10bf9187b44)) + ## [14.1.0](https://github.com/AstroNvim/astrocommunity/compare/v14.0.0...v14.1.0) (2024-10-16) From 917083747a24022bac4b6feeff29ea1c5febc72f Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Sun, 17 Nov 2024 09:08:37 -0500 Subject: [PATCH 38/53] fix(cmp-latex-symbols): use correct repository Fixes #1236 --- lua/astrocommunity/completion/cmp-latex-symbols/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/completion/cmp-latex-symbols/init.lua b/lua/astrocommunity/completion/cmp-latex-symbols/init.lua index 241463e64..1b01d2a9d 100644 --- a/lua/astrocommunity/completion/cmp-latex-symbols/init.lua +++ b/lua/astrocommunity/completion/cmp-latex-symbols/init.lua @@ -1,7 +1,7 @@ return { "hrsh7th/nvim-cmp", optional = true, - dependencies = { "hrsh7th/cmp-latex-symbols" }, + dependencies = { "kdheepak/cmp-latex-symbols" }, opts = function(_, opts) if not opts.sources then opts.sources = {} end table.insert(opts.sources, { name = "latex_symbols", priority = 700 }) From aaaa844e45420cd7b5f11b7c399bee919513d1d5 Mon Sep 17 00:00:00 2001 From: Serhii Khoma Date: Mon, 18 Nov 2024 17:36:41 +0700 Subject: [PATCH 39/53] feat(pack): Add purescript pack (#1222) * feat(pack): added purescript pack * feat: finish nvimmer-ps * feat(pack): added purescript pack -> fix suggestions * Update lua/astrocommunity/pack/purescript/init.lua Co-authored-by: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> * feat: default keymap configuration * feat: default keymap configuration --------- Co-authored-by: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> --- lua/astrocommunity/pack/purescript/README.md | 7 ++ lua/astrocommunity/pack/purescript/init.lua | 83 ++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 lua/astrocommunity/pack/purescript/README.md create mode 100644 lua/astrocommunity/pack/purescript/init.lua diff --git a/lua/astrocommunity/pack/purescript/README.md b/lua/astrocommunity/pack/purescript/README.md new file mode 100644 index 000000000..659078aaf --- /dev/null +++ b/lua/astrocommunity/pack/purescript/README.md @@ -0,0 +1,7 @@ +# purescript Language Pack + +This plugin pack does the following: + +- Adds `purescript` Treesitter parsers +- Adds `purescript-language-server` language server +- Adds `purs-tidy` formatter diff --git a/lua/astrocommunity/pack/purescript/init.lua b/lua/astrocommunity/pack/purescript/init.lua new file mode 100644 index 000000000..e426e72e3 --- /dev/null +++ b/lua/astrocommunity/pack/purescript/init.lua @@ -0,0 +1,83 @@ +return { + { + "srghma/nvimmer-ps", + opts = {}, -- if nil - M.setup wont be called + }, + { + "AstroNvim/astrocore", + ---@type AstroCoreOpts + opts = { + filetypes = { + extension = { purs = "purescript" }, + }, + }, + }, + { + "nvim-treesitter/nvim-treesitter", + optional = true, + opts = function(_, opts) + if opts.ensure_installed ~= "all" then + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "purescript" }) + end + end, + }, + { + "williamboman/mason-lspconfig.nvim", + optional = true, + opts = function(_, opts) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "purescriptls" }) + end, + }, + { + "jay-babu/mason-null-ls.nvim", + optional = true, + opts = function(_, opts) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "purs-tidy" }) + end, + }, + { + "WhoIsSethDaniel/mason-tool-installer.nvim", + optional = true, + opts = function(_, opts) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { + "purescript-language-server", + "purs-tidy", + }) + end, + }, + { + "stevearc/conform.nvim", + optional = true, + opts = { + formatters_by_ft = { + purescript = { "purs-tidy" }, + }, + }, + }, + { + "AstroNvim/astrolsp", + ---@type AstroLSPOpts + opts = { + ---@diagnostic disable: missing-fields + config = { + purescriptls = { + flags = { + debounce_text_changes = 150, + }, + -- root_dir fixes + -- "Problem running build: Reading Spago workspace configuration...\n\nโœ˜ Your spago.yaml doesn't contain a workspace section." + -- when language server is being run in a monorepo (lot of spago.yaml files, but only the top one has "workspace section") + root_dir = function(_) return vim.fn.getcwd() end, + on_attach = function(...) require("nvimmer-ps").setup_on_attach(...) end, + on_init = function(...) require("nvimmer-ps").setup_on_init(...) end, + settings = { + purescript = { + formatter = "purs-tidy", + addSpagoSources = true, + }, + }, + }, + }, + }, + }, +} From f5f344292e51252513b2316214d7c65038465814 Mon Sep 17 00:00:00 2001 From: KamilCuk Date: Wed, 20 Nov 2024 18:47:43 +0100 Subject: [PATCH 40/53] docs: Add github pages (#1273) * build(docs): Add github pages * ci: only execute pages generation on pull requests and pushes to `main` --------- Co-authored-by: Micah Halter --- .github/workflows/pages.yml | 33 +++++++++++++++++++++++++ .gitignore | 2 ++ pages_create.sh | 49 +++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 .github/workflows/pages.yml create mode 100755 pages_create.sh diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 000000000..743599e64 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,33 @@ +--- +on: + push: + branches: [main] + pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - run: ./pages_create.sh + - uses: actions/upload-pages-artifact@v3 + with: + path: pages + deploy: + needs: build + runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' }} + timeout-minutes: 1 + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + environment: + name: github-pages # Deploy to the github-pages environment + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index dcd6e0927..5a99956bd 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,5 @@ luac.out # MacOS .DS_Store + +pages diff --git a/pages_create.sh b/pages_create.sh new file mode 100755 index 000000000..55b050ab5 --- /dev/null +++ b/pages_create.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash +set -xeuo pipefail +cd "$(dirname "$(readlink -f "$0")")" +mkdir -vp pages +repourl="${GITHUB_SERVER_URL:-https://github.com}/${GITHUB_REPOSITORY:-AstroNvim/astrocommunity}/tree/main" + +{ + # Generate pandoc metadata file. + cat <pages/metadata.yaml + +{ + # Generate markdown of all descriptions. + prevsection= + shopt -s globstar + for readme in lua/astrocommunity/**/README.md; do + IFS=/ read -r _ _ section name _ <<<"$readme" + if [[ "$prevsection" != "$section" ]]; then + echo "# [$section]($repourl/lua/astrocommunity/$section)" + echo + prevsection=$section + fi + cat <pages/index.md + +# Use pandoc to convert from markdown to html. +docker run -i --rm --mount type=bind,source="$PWD",target="$PWD",readonly --workdir "$PWD" pandoc/core:3.5 \ + --from markdown --standalone --toc --toc-depth 2 --number-sections \ + --metadata-file pages/metadata.yaml pages/index.md >pages/index.html + +echo "SUCCESS - generated pages/index.html" From 2d476438bd96562b92c10e0289dbf8fd809ee682 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 20 Nov 2024 12:48:49 -0500 Subject: [PATCH 41/53] ci(pages): add name to github actions --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 743599e64..cdef67ad2 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,4 +1,4 @@ ---- +name: AstroCommunity Docs on: push: branches: [main] From e98613137cedd3469c430808621f1c0bb5f81f84 Mon Sep 17 00:00:00 2001 From: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:55:01 +0100 Subject: [PATCH 42/53] feat(utility): Add in live-server.nvim (#1270) * feat(programming-language-support): Add in live-server.nvim * chore: move plugin to utility folder * Update lua/astrocommunity/utility/live-server-nvim/init.lua Co-authored-by: Micah Halter --------- Co-authored-by: Micah Halter --- .../utility/live-server-nvim/README.md | 14 +++++++++++++ .../utility/live-server-nvim/init.lua | 20 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 lua/astrocommunity/utility/live-server-nvim/README.md create mode 100644 lua/astrocommunity/utility/live-server-nvim/init.lua diff --git a/lua/astrocommunity/utility/live-server-nvim/README.md b/lua/astrocommunity/utility/live-server-nvim/README.md new file mode 100644 index 000000000..f1259c72b --- /dev/null +++ b/lua/astrocommunity/utility/live-server-nvim/README.md @@ -0,0 +1,14 @@ +# live-server.nvim + +Live reload local development servers inside of neovim + +Requires: + +One of the following: + +- [bun](https://bun.sh/) +- [pnpm](https://pnpm.io/) +- [yarn](https://yarnpkg.com/) +- [npm](https://www.npmjs.com/) + +**Repository:** diff --git a/lua/astrocommunity/utility/live-server-nvim/init.lua b/lua/astrocommunity/utility/live-server-nvim/init.lua new file mode 100644 index 000000000..1c681a743 --- /dev/null +++ b/lua/astrocommunity/utility/live-server-nvim/init.lua @@ -0,0 +1,20 @@ +return { + "barrett-ruth/live-server.nvim", + build = function() + --- NOTE: Order of preference: + --- bun / pnpm / yarn / npm + local package_manager = vim.fn.executable "bun" and "bun" + or vim.fn.executable "pnpm" and "pnpm" + or vim.fn.executable "yarn" and "yarn" + or vim.fn.executable "npm" and "npm" + or false + + if not package_manager then + error "Missing one of the following node.js package managers: bun, pnpm, yarn, or npm " + end + local cmd = string.format("%s install --frozen-lockfile", package_manager) + vim.cmd(cmd) + end, + cmd = { "LiveServerStart", "LiveServerStop" }, + opts = {}, +} From bb7988ac0efe0c17936c350c6da19051765f0e71 Mon Sep 17 00:00:00 2001 From: Mert Sefa AKGUN Date: Sat, 23 Nov 2024 21:54:15 +0300 Subject: [PATCH 43/53] fix(proto): replace deprecated `bufls` with `buf_ls` (#1275) Update language server references from `bufls` to `buf_ls` as `bufls` is deprecated and will be removed in lspconfig 0.2.1. --- lua/astrocommunity/pack/proto/README.md | 2 +- lua/astrocommunity/pack/proto/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/pack/proto/README.md b/lua/astrocommunity/pack/proto/README.md index 136008eaf..75f334d2b 100644 --- a/lua/astrocommunity/pack/proto/README.md +++ b/lua/astrocommunity/pack/proto/README.md @@ -3,5 +3,5 @@ This plugin pack does the following: - Adds `proto` Treesitter parsers -- Adds `bufls` language servers +- Adds `buf_ls` language servers - Adds `buf` formatter diff --git a/lua/astrocommunity/pack/proto/init.lua b/lua/astrocommunity/pack/proto/init.lua index e78006418..9352118c4 100644 --- a/lua/astrocommunity/pack/proto/init.lua +++ b/lua/astrocommunity/pack/proto/init.lua @@ -13,7 +13,7 @@ return { "williamboman/mason-lspconfig.nvim", optional = true, opts = function(_, opts) - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "bufls" }) + opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "buf_ls" }) end, }, { From e6430306ca3670e920769176c16ee4125f53ee1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Szyde=C5=82ko?= Date: Mon, 2 Dec 2024 21:21:23 +0100 Subject: [PATCH 44/53] docs(nvim-toggler): remove repetition in README (#1281) fix(nvim-toggler): remove repetition in README --- lua/astrocommunity/utility/nvim-toggler/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/utility/nvim-toggler/README.md b/lua/astrocommunity/utility/nvim-toggler/README.md index 52eb3d333..bff6c09a3 100644 --- a/lua/astrocommunity/utility/nvim-toggler/README.md +++ b/lua/astrocommunity/utility/nvim-toggler/README.md @@ -3,6 +3,6 @@ Invert text in vim. Keybindings: -The default binding is `i` to invert the word under your cursor to invert the word under your cursor. +The default binding is `i` to invert the word under your cursor. **Repository:** From c5e7f6a76e7addf90f3b08d37eef2feb88557267 Mon Sep 17 00:00:00 2001 From: Lucas do Amaral Saboya Date: Fri, 6 Dec 2024 07:35:04 -0300 Subject: [PATCH 45/53] fix(pack): Add support for additional Ansible directory structures in `ansible`'s path_regex, and correct docs (#1280) fix(pack): Add support for additional well-known Ansible directories --- lua/astrocommunity/pack/ansible/README.md | 9 +++++++-- lua/astrocommunity/pack/ansible/init.lua | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lua/astrocommunity/pack/ansible/README.md b/lua/astrocommunity/pack/ansible/README.md index 3272a89d9..6c8a3500c 100644 --- a/lua/astrocommunity/pack/ansible/README.md +++ b/lua/astrocommunity/pack/ansible/README.md @@ -2,8 +2,13 @@ This plugin pack does the following: +- Adds a set of local functions to help with Ansible's filetype detection - Adds `yaml` Treesitter parsers -- Adds `ansiblels` language server +- Adds `ansible-lint` and `ansible-language-server` via `mason-tool-installer.nvim`, if enabled +- Sets up `mason-lspconfig.nvim` to use `ansiblels` if enabled - Adds the following `null-ls` sources: - [ansible-lint](https://github.com/ansible/ansible-lint) -- Adds [ansible-vim](https://github.com/pearofducks/ansible-vim) for language specific tools +- Adds the following `nvim-lint` sources: + - [ansible-lint](https://github.com/ansible/ansible-lint) +- Adds [pearofducks/ansible-vim](https://github.com/pearofducks/ansible-vim), and sets it up to be loaded for `yaml.ansible` file types +- Configures [stevearc/conform.nvim](https://github.com/stevearc/conform.nvim) to use `prettierd` and `prettier` for `yaml.ansible` file types diff --git a/lua/astrocommunity/pack/ansible/init.lua b/lua/astrocommunity/pack/ansible/init.lua index dce20964a..5ed6fa394 100644 --- a/lua/astrocommunity/pack/ansible/init.lua +++ b/lua/astrocommunity/pack/ansible/init.lua @@ -4,8 +4,9 @@ local function yaml_ft(path, bufnr) if type(content) == "table" then content = table.concat(content, "\n") end -- check if file is in roles, tasks, or handlers folder - local path_regex = vim.regex "(tasks\\|roles\\|handlers)/" + local path_regex = vim.regex "(ansible\\|group_vars\\|handlers\\|host_vars\\|playbooks\\|roles\\|\\vars\\|tasks)/" if path_regex and path_regex:match_str(path) then return "yaml.ansible" end + -- check for known ansible playbook text and if found, return yaml.ansible local regex = vim.regex "hosts:\\|tasks:" if regex and regex:match_str(content) then return "yaml.ansible" end From b95c5daf07316b271b5ed6d092228c99c260722b Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Mon, 9 Dec 2024 21:47:42 -0500 Subject: [PATCH 46/53] feat(git): add `mini.diff` --- lua/astrocommunity/git/mini-diff/README.md | 5 +++++ lua/astrocommunity/git/mini-diff/init.lua | 26 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 lua/astrocommunity/git/mini-diff/README.md create mode 100644 lua/astrocommunity/git/mini-diff/init.lua diff --git a/lua/astrocommunity/git/mini-diff/README.md b/lua/astrocommunity/git/mini-diff/README.md new file mode 100644 index 000000000..5c8198b27 --- /dev/null +++ b/lua/astrocommunity/git/mini-diff/README.md @@ -0,0 +1,5 @@ +# mini.diff + +Work with diff hunks. Part of 'mini.nvim' library. + +**Repository:** diff --git a/lua/astrocommunity/git/mini-diff/init.lua b/lua/astrocommunity/git/mini-diff/init.lua new file mode 100644 index 000000000..8e64d51ce --- /dev/null +++ b/lua/astrocommunity/git/mini-diff/init.lua @@ -0,0 +1,26 @@ +---@type LazySpec +return { + "echasnovski/mini.diff", + event = "User AstroGitFile", + opts = function() + local sign = require("astroui").get_icon "GitSign" + return { + view = { + style = "sign", + signs = { add = sign, change = sign, delete = sign }, + }, + mappings = { + apply = "gh", + goto_first = "[G", + goto_last = "]G", + goto_next = "]g", + goto_prev = "[g", + reset = "gH", + textobject = "g", + }, + } + end, + specs = { + { "lewis6991/gitsigns.nvim", enabled = false }, + }, +} From b59ad24883f59f13b8398f9759597d845586bac5 Mon Sep 17 00:00:00 2001 From: "Alexandre GV." Date: Wed, 11 Dec 2024 09:42:37 +0100 Subject: [PATCH 47/53] feat(colorscheme): add palenight.nvim colorscheme (#1285) Add palenight.nvim colorscheme --- lua/astrocommunity/colorscheme/palenight-nvim/README.md | 5 +++++ lua/astrocommunity/colorscheme/palenight-nvim/init.lua | 1 + 2 files changed, 6 insertions(+) create mode 100644 lua/astrocommunity/colorscheme/palenight-nvim/README.md create mode 100644 lua/astrocommunity/colorscheme/palenight-nvim/init.lua diff --git a/lua/astrocommunity/colorscheme/palenight-nvim/README.md b/lua/astrocommunity/colorscheme/palenight-nvim/README.md new file mode 100644 index 000000000..af1487281 --- /dev/null +++ b/lua/astrocommunity/colorscheme/palenight-nvim/README.md @@ -0,0 +1,5 @@ +# palenight.nvim + +Palenight.nvim is a fast and modern colorscheme that supports the new Neovim features like builtin LSP and Treesitter and several plugins + +**Repository:** diff --git a/lua/astrocommunity/colorscheme/palenight-nvim/init.lua b/lua/astrocommunity/colorscheme/palenight-nvim/init.lua new file mode 100644 index 000000000..cee3e9c8b --- /dev/null +++ b/lua/astrocommunity/colorscheme/palenight-nvim/init.lua @@ -0,0 +1 @@ +return { "wilmanbarrios/palenight.nvim", lazy = true } From b25c9e729369f9f52f2986bb8543f45549fed206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C5=9Een?= Date: Wed, 11 Dec 2024 11:43:23 +0300 Subject: [PATCH 48/53] fix(cs-omnisharp): Fix bug in handler registration caused by wrong lsp name (#1279) * feat(cs-omnisharp): add csharp support with omnisharp * fix(cs-omnisharp): `omnisharp-extended-lsp.nvim` handler registration --- lua/astrocommunity/pack/cs-omnisharp/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/cs-omnisharp/init.lua b/lua/astrocommunity/pack/cs-omnisharp/init.lua index 347b24586..5e37b3afd 100644 --- a/lua/astrocommunity/pack/cs-omnisharp/init.lua +++ b/lua/astrocommunity/pack/cs-omnisharp/init.lua @@ -30,7 +30,7 @@ return { "AstroNvim/astrolsp", opts = { config = { - csharp_ls = { + omnisharp = { handlers = { ["textDocument/definition"] = function(...) require("omnisharp_extended").definition_handler(...) end, ["textDocument/typeDefinition"] = function(...) From bc828fc07ab64a6548010e7289295d8210ca7f14 Mon Sep 17 00:00:00 2001 From: Lucas do Amaral Saboya Date: Fri, 13 Dec 2024 05:04:40 -0300 Subject: [PATCH 49/53] fix(pack): Fix path_regex regular expression (#1284) --- lua/astrocommunity/pack/ansible/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/ansible/init.lua b/lua/astrocommunity/pack/ansible/init.lua index 5ed6fa394..31a3a3ac0 100644 --- a/lua/astrocommunity/pack/ansible/init.lua +++ b/lua/astrocommunity/pack/ansible/init.lua @@ -4,7 +4,7 @@ local function yaml_ft(path, bufnr) if type(content) == "table" then content = table.concat(content, "\n") end -- check if file is in roles, tasks, or handlers folder - local path_regex = vim.regex "(ansible\\|group_vars\\|handlers\\|host_vars\\|playbooks\\|roles\\|\\vars\\|tasks)/" + local path_regex = vim.regex "(ansible\\|group_vars\\|handlers\\|host_vars\\|playbooks\\|roles\\|vars\\|tasks)/" if path_regex and path_regex:match_str(path) then return "yaml.ansible" end -- check for known ansible playbook text and if found, return yaml.ansible From 932a3dabe2b43e7a5bd40c20aca666da4bd26ba6 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Fri, 13 Dec 2024 09:31:50 -0500 Subject: [PATCH 50/53] fix(avante-nvim)!: improve Avante keymaps to not conflict with with changing text (#1288) --- .../completion/avante-nvim/init.lua | 67 ++++++++++++------- 1 file changed, 41 insertions(+), 26 deletions(-) diff --git a/lua/astrocommunity/completion/avante-nvim/init.lua b/lua/astrocommunity/completion/avante-nvim/init.lua index e8e0cfa97..a1ee09a24 100644 --- a/lua/astrocommunity/completion/avante-nvim/init.lua +++ b/lua/astrocommunity/completion/avante-nvim/init.lua @@ -1,6 +1,7 @@ return { "yetone/avante.nvim", - build = ":AvanteBuild", + build = vim.fn.has "win32" == 1 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" + or "make", cmd = { "AvanteAsk", "AvanteBuild", @@ -19,42 +20,55 @@ return { "AstroNvim/astrocore", opts = function(_, opts) local maps = assert(opts.mappings) - local prefix = "a" + local prefix = "A" - maps.n[prefix] = { desc = "Avante functionalities" } + maps.n[prefix] = { desc = require("astroui").get_icon("Avante", 1, true) .. "Avante" } - maps.n[prefix .. "a"] = { function() require("avante.api").ask() end, desc = "Avante ask" } - maps.v[prefix .. "a"] = { function() require("avante.api").ask() end, desc = "Avante ask" } + maps.n[prefix .. ""] = { function() require("avante.api").ask() end, desc = "Avante ask" } + maps.v[prefix .. ""] = { function() require("avante.api").ask() end, desc = "Avante ask" } maps.v[prefix .. "r"] = { function() require("avante.api").refresh() end, desc = "Avante refresh" } maps.n[prefix .. "e"] = { function() require("avante.api").edit() end, desc = "Avante edit" } maps.v[prefix .. "e"] = { function() require("avante.api").edit() end, desc = "Avante edit" } - - -- the following key bindings do not have an official api implementation - maps.n.co = { "(AvanteConflictOurs)", desc = "Choose ours", expr = true } - maps.v.co = { "(AvanteConflictOurs)", desc = "Choose ours", expr = true } - - maps.n.ct = { "(AvanteConflictTheirs)", desc = "Choose theirs", expr = true } - maps.v.ct = { "(AvanteConflictTheirs)", desc = "Choose theirs", expr = true } - - maps.n.ca = { "(AvanteConflictAllTheirs)", desc = "Choose all theirs", expr = true } - maps.v.ca = { "(AvanteConflictAllTheirs)", desc = "Choose all theirs", expr = true } - - maps.n.cb = { "(AvanteConflictBoth)", desc = "Choose both", expr = true } - maps.v.cb = { "(AvanteConflictBoth)", desc = "Choose both", expr = true } - - maps.n.cc = { "(AvanteConflictCursor)", desc = "Choose cursor", expr = true } - maps.v.cc = { "(AvanteConflictCursor)", desc = "Choose cursor", expr = true } - - maps.n["]x"] = { "(AvanteConflictPrevConflict)", desc = "Move to previous conflict", expr = true } - - maps.n["[x"] = { "(AvanteConflictNextConflict)", desc = "Move to next conflict", expr = true } end, }, }, - opts = {}, + opts = { + mappings = { + diff = { + ours = "co", + theirs = "ct", + all_theirs = "ca", + both = "cb", + cursor = "cc", + next = "]c", + prev = "[c", + }, + suggestion = { + accept = "", + next = "", + prev = "", + dismiss = "", + }, + jump = { + next = "]]", + prev = "[[", + }, + submit = { + normal = "", + insert = "", + }, + sidebar = { + apply_all = "A", + apply_cursor = "a", + switch_windows = "", + reverse_switch_windows = "", + }, + }, + }, specs = { -- configure optional plugins + { "AstroNvim/astroui", opts = { icons = { Avante = "๎ŠŒ" } } }, { -- if copilot.lua is available, default to copilot provider "zbirenbaum/copilot.lua", optional = true, @@ -63,6 +77,7 @@ return { "yetone/avante.nvim", opts = { provider = "copilot", + auto_suggestions_provider = "copilot", }, }, }, From 427c63d48fc2cd6c89c45382fc40f6b0c1f999e2 Mon Sep 17 00:00:00 2001 From: windowsrefund Date: Fri, 13 Dec 2024 09:33:32 -0500 Subject: [PATCH 51/53] feat(blink-cmp): disable cmp-git (#1268) disable cmp-git Co-authored-by: windowsrefund --- lua/astrocommunity/completion/blink-cmp/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/astrocommunity/completion/blink-cmp/init.lua b/lua/astrocommunity/completion/blink-cmp/init.lua index f6948ae34..fceb56881 100644 --- a/lua/astrocommunity/completion/blink-cmp/init.lua +++ b/lua/astrocommunity/completion/blink-cmp/init.lua @@ -93,6 +93,7 @@ return { -- disable built in completion plugins { "hrsh7th/nvim-cmp", enabled = false }, { "rcarriga/cmp-dap", enabled = false }, + { "petertriho/cmp-git", enabled = false }, { "L3MON4D3/LuaSnip", enabled = false }, { "onsails/lspkind.nvim", enabled = false }, }, From f401d9b0b5a4e019c5d32f3d4932136a4ca30505 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Fri, 13 Dec 2024 10:18:28 -0500 Subject: [PATCH 52/53] fix(avante-nvim): use Avante to manage bidnings and lazy load on file open --- .../completion/avante-nvim/init.lua | 57 ++++++------------- 1 file changed, 16 insertions(+), 41 deletions(-) diff --git a/lua/astrocommunity/completion/avante-nvim/init.lua b/lua/astrocommunity/completion/avante-nvim/init.lua index a1ee09a24..04980597e 100644 --- a/lua/astrocommunity/completion/avante-nvim/init.lua +++ b/lua/astrocommunity/completion/avante-nvim/init.lua @@ -1,7 +1,9 @@ +local prefix = "A" return { "yetone/avante.nvim", build = vim.fn.has "win32" == 1 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" or "make", + event = "User AstroFile", -- load on file open because Avante manages it's own bindings cmd = { "AvanteAsk", "AvanteBuild", @@ -16,54 +18,27 @@ return { "stevearc/dressing.nvim", "nvim-lua/plenary.nvim", "MunifTanjim/nui.nvim", - { - "AstroNvim/astrocore", - opts = function(_, opts) - local maps = assert(opts.mappings) - local prefix = "A" - - maps.n[prefix] = { desc = require("astroui").get_icon("Avante", 1, true) .. "Avante" } - - maps.n[prefix .. ""] = { function() require("avante.api").ask() end, desc = "Avante ask" } - maps.v[prefix .. ""] = { function() require("avante.api").ask() end, desc = "Avante ask" } - - maps.v[prefix .. "r"] = { function() require("avante.api").refresh() end, desc = "Avante refresh" } - - maps.n[prefix .. "e"] = { function() require("avante.api").edit() end, desc = "Avante edit" } - maps.v[prefix .. "e"] = { function() require("avante.api").edit() end, desc = "Avante edit" } - end, - }, + { "AstroNvim/astrocore", opts = function(_, opts) opts.mappings.n[prefix] = { desc = "๎ŠŒ Avante" } end }, }, opts = { mappings = { + ask = prefix .. "", + edit = prefix .. "e", + refresh = prefix .. "r", + focus = prefix .. "f", + toggle = { + default = prefix .. "t", + debug = prefix .. "d", + hint = prefix .. "h", + suggestion = prefix .. "s", + repomap = prefix .. "R", + }, diff = { - ours = "co", - theirs = "ct", - all_theirs = "ca", - both = "cb", - cursor = "cc", next = "]c", prev = "[c", }, - suggestion = { - accept = "", - next = "", - prev = "", - dismiss = "", - }, - jump = { - next = "]]", - prev = "[[", - }, - submit = { - normal = "", - insert = "", - }, - sidebar = { - apply_all = "A", - apply_cursor = "a", - switch_windows = "", - reverse_switch_windows = "", + files = { + add_current = prefix .. ".", }, }, }, From de8bd4fe653da88eeec4a3c2ac7a5298e693e85f Mon Sep 17 00:00:00 2001 From: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:18:42 +0100 Subject: [PATCH 53/53] feat(project): Add in linear-nvim (#1290) * feat(project): Add in linear-nvim * feat(linear-nvim): Add keymaps based upon the defaults in the plugin readme --- .../project/linear-nvim/README.md | 6 ++++ .../project/linear-nvim/init.lua | 34 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 lua/astrocommunity/project/linear-nvim/README.md create mode 100644 lua/astrocommunity/project/linear-nvim/init.lua diff --git a/lua/astrocommunity/project/linear-nvim/README.md b/lua/astrocommunity/project/linear-nvim/README.md new file mode 100644 index 000000000..a9ba830ad --- /dev/null +++ b/lua/astrocommunity/project/linear-nvim/README.md @@ -0,0 +1,6 @@ +# linear-nvim + +A NeoVim plugin to browse and create issues in your Linear workspace. Written in Lua + +**Repository:** + diff --git a/lua/astrocommunity/project/linear-nvim/init.lua b/lua/astrocommunity/project/linear-nvim/init.lua new file mode 100644 index 000000000..b541a4334 --- /dev/null +++ b/lua/astrocommunity/project/linear-nvim/init.lua @@ -0,0 +1,34 @@ +return { + "rmanocha/linear-nvim", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope.nvim", + "stevearc/dressing.nvim", + { + "AstroNvim/astrocore", + opts = function(_, opts) + local maps = opts.mappings + local prefix = "m" + + maps.n[prefix] = { desc = "Linear" } + maps.n[prefix .. "m"] = { + function() require("linear-nvim").show_assigned_issues() end, + desc = "Show assigned issues", + } + maps.v[prefix .. "c"] = { + function() require("linear-nvim").create_issue() end, + desc = "Toggle local note", + } + maps.n[prefix .. "c"] = { + function() require("linear-nvim").create_issue() end, + desc = "Toggle local note", + } + maps.n[prefix .. "s"] = { + function() require("linear-nvim").show_issue_details() end, + desc = "Toggle local note", + } + end, + }, + }, + opts = {}, +}