diff --git a/README.md b/README.md index 44b767f2..c51107c0 100644 --- a/README.md +++ b/README.md @@ -126,9 +126,6 @@ Did you know NormalNvim was the first Neovim distro to ship a compiler that [sup ## Roadmap ### Todos before v5.0 (2025) -* Let's start doing some manual testing for the installer to ensure it install correctly on all OS. -* Let's consider [tiny-glimmer](https://github.com/rachartier/tiny-glimmer.nvim) over highlight-undo, so we don't have to maintain the plugin ourselves. -* ~~Let's keep an eye on the plugins that display deprecation warnings on nvim 0.11 [here](https://github.com/nvim-neo-tree/neo-tree.nvim/issues/1588) and [here](https://github.com/ray-x/lsp_signature.nvim/issues/346)~~. Full list of deprecations [here](https://neovim.io/doc/user/deprecated.html#deprecated). * It would be a neat UX improvement to integrate [snacks.nvim UI toggles](https://github.com/folke/snacks.nvim/blob/main/docs/toggle.md). But let's ensure code remain decoupled. * Compiler.nvim: test windows support. * Compiler.nvim: add support for justfiles and taskfiles. @@ -139,7 +136,11 @@ Did you know NormalNvim was the first Neovim distro to ship a compiler that [sup * Compiler.nvim: test support for nim-lang. * Compiler.nvim: add support for new language `common LISP`. * Compiler.nvim: add support for new language `COBOL`. +* Let's start doing some manual testing for the installer to ensure it install correctly on all OS. * Version v2 of the website should look considerably better. +* ~~Let's consider [tiny-glimmer](https://github.com/rachartier/tiny-glimmer.nvim) over highlight-undo, so we don't have to maintain the plugin ourselves.~~ → Let's keep using highlighg-undo, as it's been fixed upstream. +* ~~Let's keep an eye on the plugins that display deprecation warnings on nvim 0.11 [here](https://github.com/nvim-neo-tree/neo-tree.nvim/issues/1588) and [here](https://github.com/ray-x/lsp_signature.nvim/issues/346)~~. Full list of deprecations [here](https://neovim.io/doc/user/deprecated.html#deprecated). + ### Blocked * Once selene add [this](https://github.com/Kampfkarren/selene/issues/224) and [this](https://github.com/Kampfkarren/selene/issues/524) and [this](https://github.com/Kampfkarren/selene/pull/591), let's add the new rules. diff --git a/lua/base/4-mappings.lua b/lua/base/4-mappings.lua index bc7886c5..7f5ffbc9 100644 --- a/lua/base/4-mappings.lua +++ b/lua/base/4-mappings.lua @@ -1269,7 +1269,7 @@ if is_available("markdown-preview.nvim") or is_available("markmap.nvim") or is_a -- Markdown preview if is_available("markdown-preview.nvim") then maps.n["Dp"] = { - function() vim.cmd("MarkdownPreview") end, + function() vim.cmd("silent! MarkdownPreview") end, desc = "Markdown preview", } end @@ -1346,16 +1346,16 @@ function M.lsp_mappings(client, bufnr) local lsp_mappings = require("base.utils").get_mappings_template() -- Diagnostics - lsp_mappings.n["ld"] = { function() vim.diagnostic.open_float() end, desc = "Hover diagnostics" } - lsp_mappings.n["[d"] = { function() - -- TODO: Delete after dropping nvim 0.10 support. - if vim.fn.has('nvim-0.11') == 1 then vim.diagnostic.jump({ count = -1 }) - else vim.diagnostic.goto_prev() end end, desc = "Previous diagnostic" - } - lsp_mappings.n["]d"] = { function() - -- TODO: Delete after dropping nvim 0.10 support. - if vim.fn.has('nvim-0.11') == 1 then vim.diagnostic.jump({ count = 1 }) - else vim.diagnostic.goto_next() end end, desc = "Next diagnostic" } + lsp_mappings.n["ld"] = + { function() vim.diagnostic.open_float() end, desc = "Hover diagnostics" } + lsp_mappings.n["[d"] = { + function() vim.diagnostic.jump({ count = -1 }) end, + desc = "Previous diagnostic", + } + lsp_mappings.n["]d"] = { + function() vim.diagnostic.jump({ count = 1 }) end, + desc = "Next diagnostic", + } -- Diagnostics lsp_mappings.n["gl"] = { function() vim.diagnostic.open_float() end, desc = "Hover diagnostics" } diff --git a/lua/base/utils/lsp.lua b/lua/base/utils/lsp.lua index 3ab6da27..de0e6310 100644 --- a/lua/base/utils/lsp.lua +++ b/lua/base/utils/lsp.lua @@ -43,11 +43,6 @@ M.apply_default_lsp_settings = function() -- Apply default lsp hover borders -- Applies the option lsp_round_borders_enabled from ../1-options.lua M.lsp_hover_config = vim.g.lsp_round_borders_enabled and { border = "rounded", silent = true } or {} - if vim.fn.has("nvim-0.11") == 0 then -- TODO: Delete when dropping 0.10 support - vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded", silent = true }) - vim.lsp.handlers["textDocument/signatureHelp"] = - vim.lsp.with(vim.lsp.handlers.signature_help, { border = "rounded", silent = true }) - end -- Set default diagnostics local default_diagnostics = { diff --git a/lua/lazy_snapshot.lua b/lua/lazy_snapshot.lua index 2cb59653..5b7d0ad6 100644 --- a/lua/lazy_snapshot.lua +++ b/lua/lazy_snapshot.lua @@ -1,5 +1,5 @@ return { - { "AckslD/nvim-neoclip.lua", commit = "c4ce7f6c402872469795f8a47ffabe87e142f0fb" }, + { "AckslD/nvim-neoclip.lua", commit = "831a97c7697736411a05ff8b91e8798ea4c2d6fb" }, { "AstroNvim/astrotheme", version = "^4.8" }, { "Bilal2453/luvit-meta", commit = "1df30b60b1b4aecfebc785aa98943db6c6989716" }, { "Issafalcon/neotest-dotnet", commit = "5a2fa35c3c6a72cfd3fc6a28b3d1af6e68e6c3a8" }, @@ -11,15 +11,15 @@ return { { "Shatur/neovim-session-manager", version = "^1" }, { "akinsho/toggleterm.nvim", version = "^3" }, { "andymass/vim-matchup", commit = "aca23ce53ebfe34e02c4fe07e29e9133a2026481" }, - { "b0o/SchemaStore.nvim", commit = "bb52c530698654355bbddb9f0035dc35cea401a5" }, + { "b0o/SchemaStore.nvim", commit = "1cf2c23143c2daadbdf8ec372c6df7228dbdf8dd" }, { "benfowler/telescope-luasnip.nvim", version = "^1" }, { "brenoprata10/nvim-highlight-colors", version = "^1" }, { "cappyzawa/trim.nvim", commit = "d0760a840ca2fe4958353dee567a90c2994e70a7" }, - { "debugloop/telescope-undo.nvim", commit = "2971cc9f193ec09e0c5de3563f99cbea16b63f10" }, + { "debugloop/telescope-undo.nvim", commit = "928d0c2dc9606e01e2cc547196f48d2eaecf58e5" }, { "dense-analysis/neural", commit = "f53af0007124517a46b99a4d49b86087e426bfef" }, - { "echasnovski/mini.animate", commit = "d14190ac3040116540889e2ebc25f488b195799e" }, - { "echasnovski/mini.bufremove", commit = "285bdac9596ee7375db50c0f76ed04336dcd2685" }, - { "echasnovski/mini.indentscope", commit = "613df2830d7faeae7483ba2e736683154b95921e" }, + { "echasnovski/mini.animate", commit = "13e170c13030b043aa8ad4311012ec0eaba0d5c7" }, + { "echasnovski/mini.bufremove", commit = "bba1d8b413d37081756f59200b8cf756181e5b9a" }, + { "echasnovski/mini.indentscope", commit = "8ce41a77eed7f4121c83c67fda5e2e86af999e6d" }, { "folke/lazy.nvim", version = "^11" }, { "folke/lazydev.nvim", version = "^2" }, { "folke/noice.nvim", version = "^4.9" }, @@ -27,20 +27,20 @@ return { { "folke/ts-comments.nvim", version = "^3" }, { "folke/which-key.nvim", version = "^3" }, { "folke/zen-mode.nvim", version = "^1" }, - { "fredrikaverpil/neotest-golang", commit = "059c5754a17629c25dce61eefcea40164ee62975" }, + { "fredrikaverpil/neotest-golang", commit = "310a015215fc02ba8b12c3098b75d4805e970b3f" }, { "goolord/alpha-nvim", commit = "de72250e054e5e691b9736ee30db72c65d560771" }, { "hrsh7th/cmp-buffer", commit = "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, { "hrsh7th/cmp-nvim-lsp", commit = "99290b3ec1322070bcfb9e846450a46f6efa50f0" }, { "hrsh7th/cmp-path", commit = "91ff86cd9c29299a64f968ebb45846c485725f23" }, { "iamcco/markdown-preview.nvim", commit = "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" }, - { "jay-babu/mason-nvim-dap.nvim", commit = "8b9363d83b5d779813cdd2819b8308651cec2a09" }, + { "jay-babu/mason-nvim-dap.nvim", commit = "444aad7977ee713a4049e9d1dd9b377967d67a4c" }, { "jbyuki/one-small-step-for-vimkind", commit = "b9def31568d20b16f7da9479a4174d165046fe8a" }, { "jfpedroza/neotest-elixir", commit = "a242aebeaa6997c1c149138ff77f6cacbe33b6fc" }, - { "kevinhwang91/nvim-ufo", commit = "4c64d89c2bf174d95d4ac91cc959a9e43e2f318c" }, + { "kevinhwang91/nvim-ufo", commit = "a52c92c3bbaa10f0c9b547a50adaa8c7d8b29f94" }, { "kevinhwang91/promise-async", commit = "119e8961014c9bfaf1487bf3c2a393d254f337e2" }, - { "kosayoda/nvim-lightbulb", commit = "416fd563117f4fd21969706e19d463e81fbf4691" }, + { "kosayoda/nvim-lightbulb", commit = "f7f61c47af5bf701b1f4af127bc565ab6491acbf" }, { "lambdalisue/vim-suda", version = "^2" }, - { "lawrence-laz/neotest-zig", commit = "c7a1a39626fa90e639fb640b6322739060a2acf3" }, + { "lawrence-laz/neotest-zig", commit = "de63f3b9a182d374d2e71cf44385326682ec90e7" }, { "ldelossa/litee-calltree.nvim", commit = "b50c809d136ad479caf761a7f030da98c56c7976" }, { "ldelossa/litee.nvim", commit = "4efaf373322d9e71eaff31164abb393417cc6f6a" }, { "lewis6991/gitsigns.nvim", version = "^1" }, @@ -50,53 +50,52 @@ return { { "mikavilpas/yazi.nvim", version = "^8" }, { "mrjones2014/smart-splits.nvim", version = "^1" }, { "neovim/nvim-lspconfig", version = "^0.2" }, - { "nvim-cmp", commit = "12509903a5723a876abd65953109f926f4634c30" }, + { "nvim-cmp", commit = "1e1900b0769324a9675ef85b38f99cca29e203b3" }, { "nvim-java/lua-async-await", commit = "652d94df34e97abe2d4a689edbc4270e7ead1a98" }, - { "nvim-java/nvim-java", commit = "4d810a546c262ca8f60228dc98ba51f81f5649c6" }, - { "nvim-java/nvim-java-core", commit = "5a45ffb0fe5294e76a3c193492e8b0ba93e9d929" }, + { "nvim-java/nvim-java", commit = "e552f06d86752edd77aedf50b9b49e59f6de1b65" }, + { "nvim-java/nvim-java-core", commit = "401bf7683012a25929a359deec418f36beb876e2" }, { "nvim-java/nvim-java-dap", commit = "55f239532f7a3789d21ea68d1e795abc77484974" }, - { "nvim-java/nvim-java-refactor", commit = "5379779f4fc66e46eb9a636ba2b85f595cea8103" }, + { "nvim-java/nvim-java-refactor", commit = "b51a57d862338999059e1d1717df3bc80a3a15c0" }, { "nvim-java/nvim-java-test", commit = "7f0f40e9c5b7eab5096d8bec6ac04251c6e81468" }, - { "nvim-lua/plenary.nvim", commit = "3707cdb1e43f5cea73afb6037e6494e7ce847a66" }, + { "nvim-lua/plenary.nvim", commit = "857c5ac632080dba10aae49dba902ce3abf91b35" }, { "nvim-neo-tree/neo-tree.nvim", version = "^3" }, { "nvim-neotest/neotest", version = "^6" }, { "nvim-neotest/neotest-jest", commit = "514fd4eae7da15fd409133086bb8e029b65ac43f" }, { "nvim-neotest/neotest-python", commit = "a2861ab3c9a0bf75a56b11835c2bfc8270f5be7e" }, { "nvim-neotest/nvim-nio", commit = "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, { "nvim-pack/nvim-spectre", commit = "ddd7383e856a7c939cb4f5143278fe041bbb8cb9" }, - { "nvim-telescope/telescope-fzf-native.nvim", commit = "dae2eac9d91464448b584c7949a31df8faefec56" }, - { "nvim-telescope/telescope.nvim", commit = "415af52339215926d705cccc08145f3782c4d132" }, - { "nvim-tree/nvim-web-devicons", commit = "37334adf4517fecfd97c0b44e1d4718e377e9e52" }, - { "nvim-treesitter/nvim-treesitter", commit = "f3d7c0dafcbc86c4d63f765649c884a03bc1360a" }, - { "nvim-treesitter/nvim-treesitter-textobjects", commit = "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" }, - { "nvimtools/none-ls.nvim", commit = "ed8f80849ef1ad31c2f74679fafdef7801091247" }, + { "nvim-telescope/telescope-fzf-native.nvim", commit = "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, + { "nvim-telescope/telescope.nvim", commit = "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" }, + { "nvim-tree/nvim-web-devicons", commit = "4c3a5848ee0b09ecdea73adcd2a689190aeb728c" }, + { "nvim-treesitter/nvim-treesitter", commit = "f09a2215b8fed4c2e86f2dd1912e14166958c06a" }, + { "nvim-treesitter/nvim-treesitter-textobjects", commit = "9937e5e356e5b227ec56d83d0a9d0a0f6bc9cad4" }, + { "nvimtools/none-ls.nvim", commit = "a117163db44c256d53c3be8717f3e1a2a28e6299" }, { "olimorris/neotest-phpunit", commit = "baae8dfa0a3aaacd9f0bb6845d6348f5bcdc48bb" }, { "onsails/lspkind.nvim", version = "^1" }, { "petertriho/nvim-scrollbar", version = "^1" }, - { "philosofonusus/morta.nvim", commit = "462308c707c0bf0dc1a5e1150ac3aabb544a3820" }, { "rafamadriz/friendly-snippets", version = "^1" }, { "ray-x/lsp_signature.nvim", version = "^0.4" }, { "rcarriga/cmp-dap", commit = "ea92773e84c0ad3288c3bc5e452ac91559669087" }, { "rcarriga/nvim-dap-ui", commit = "bc81f8d3440aede116f821114547a476b082b319" }, { "rcarriga/nvim-notify", version = "^4" }, - { "rcasia/neotest-java", commit = "43b4cf9ee0d3d05f56a9a43c89c4268157cfbc79" }, + { "rcasia/neotest-java", commit = "1404de796b1afbbc20cf84db991c901270b901c9" }, { "rebelot/heirline.nvim", version = "^1" }, { "rouge8/neotest-rust", commit = "e1cb22ecf0341fb894ef2ebde344389fe6e6fc8e" }, { "saadparwaiz1/cmp_luasnip", commit = "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, - { "sidlatau/neotest-dart", commit = "8b4f68217e8fb072bee62544b7f834cf76cc38ca" }, + { "sidlatau/neotest-dart", commit = "ec1cecdfd44c82632f5fbdcad3dc77622fe4ee67" }, { "skywind3000/gutentags_plus", commit = "a0157ca0092a21f0947917945506fde3859c9cd2" }, { "smoka7/hop.nvim", version = "^2" }, - { "stevearc/aerial.nvim", commit = "2aeafd99937602fc40609ffffbdd2f99d77343e9" }, - { "stevearc/dressing.nvim", commit = "56ef6a969a4990d938c5fed40c370f65e125fc97" }, - { "stevearc/overseer.nvim", commit = "390332d4687e3d07495a545ba11e62fcf30339f1" }, - { "stevearc/stickybuf.nvim", commit = "61ec81b9de2a76bfcfaa579f16bf88395b58b814" }, - { "tpope/vim-fugitive", commit = "d74a7cff4cfcf84f83cc7eccfa365488f3bbabc2" }, + { "stevearc/aerial.nvim", commit = "2204cf08791449a6a2fd2ef187a29112eeefd989" }, + { "stevearc/dressing.nvim", commit = "2d7c2db2507fa3c4956142ee607431ddb2828639" }, + { "stevearc/overseer.nvim", commit = "d95931e9e8cc4429819c8bbae395da00a6800d1e" }, + { "stevearc/stickybuf.nvim", commit = "0c1e5f1a3eb36eea2cea57083828269cc62c58e4" }, + { "tpope/vim-fugitive", commit = "4a745ea72fa93bb15dd077109afbb3d1809383f2" }, { "tpope/vim-rhubarb", commit = "386daa2e9d98e23e27ad089afcbe5c5a903e488d" }, - { "tzachar/highlight-undo.nvim", commit = "4f6215b0a2b2e88d55a6eb658796ee7a546e73f7" }, + { "tzachar/highlight-undo.nvim", commit = "a5e2e2d43f6d131bf526619baeeeec32397b0789" }, { "williamboman/mason-lspconfig.nvim", version = "^1" }, { "williamboman/mason.nvim", version = "^1" }, - { "windwp/nvim-autopairs", commit = "3d02855468f94bf435db41b661b58ec4f48a06b7" }, - { "windwp/nvim-ts-autotag", commit = "1cca23c9da708047922d3895a71032bc0449c52d" }, + { "windwp/nvim-autopairs", commit = "68f0e5c3dab23261a945272032ee6700af86227a" }, + { "windwp/nvim-ts-autotag", commit = "a1d526af391f6aebb25a8795cbc05351ed3620b5" }, { "zeioth/NormalSnippets", commit = "ef841ad4a0ccc6144d605cd2b4a874b04b295cb8" }, { "zeioth/compiler.nvim", version = "^4" }, { "zeioth/distroupdate.nvim", version = "^2" }, diff --git a/lua/plugins/3-dev-core.lua b/lua/plugins/3-dev-core.lua index 72d5e152..ec2b4a27 100644 --- a/lua/plugins/3-dev-core.lua +++ b/lua/plugins/3-dev-core.lua @@ -4,7 +4,6 @@ -- Sections: -- ## TREE SITTER -- -> nvim-treesitter [syntax highlight] --- -> ts-comments.nvim [treesitter comments] -- -> render-markdown.nvim [normal mode markdown] -- -> nvim-highlight-colors [hex colors] @@ -31,7 +30,7 @@ local utils_lsp = require("base.utils.lsp") return { -- TREE SITTER --------------------------------------------------------- - -- [syntax highlight] + [treesitter understand html tags] + [comments] + -- [syntax highlight] -- https://github.com/nvim-treesitter/nvim-treesitter -- https://github.com/windwp/nvim-treesitter-textobjects { @@ -132,16 +131,6 @@ return { end, }, - -- ts-comments.nvim [treesitter comments] - -- https://github.com/folke/ts-comments.nvim - -- This plugin can be safely removed after nvim 0.11 is released. - { - "folke/ts-comments.nvim", - event = "User BaseFile", - enabled = vim.fn.has("nvim-0.10.0") == 1, - opts = {}, - }, - -- render-markdown.nvim [normal mode markdown] -- https://github.com/MeanderingProgrammer/render-markdown.nvim -- While on normal mode, markdown files will display highlights. diff --git a/lua/plugins/4-dev.lua b/lua/plugins/4-dev.lua index 6a6bd846..7c08f7ab 100644 --- a/lua/plugins/4-dev.lua +++ b/lua/plugins/4-dev.lua @@ -287,13 +287,24 @@ return { -- Note: If you change the build command, wipe ~/.local/data/nvim/lazy { "iamcco/markdown-preview.nvim", - build = function() vim.fn["mkdp#util#install"]() end, - ft = { "markdown" }, - cmd = { - "MarkdownPreview", - "MarkdownPreviewStop", - "MarkdownPreviewToggle", - }, + build = function(plugin) + -- guard clauses + local yarn = (vim.fn.executable("yarn") and "yarn") + or (vim.fn.executable("npx") and "npx -y yarn") + or nil + if not yarn then error("Missing `yarn` or `npx` in the PATH") end + + -- run cmd + local cd_cmd = "!cd " .. plugin.dir .. " && cd app" + local yarn_install_cmd = "COREPACK_ENABLE_AUTO_PIN=0 " .. yarn .. " install --frozen-lockfile" + vim.cmd(cd_cmd .. " && " .. yarn_install_cmd) + end, + init = function() + local plugin = require("lazy.core.config").spec.plugins["markdown-preview.nvim"] + vim.g.mkdp_filetypes = require("lazy.core.plugin").values(plugin, "ft", true) + end, + ft = { "markdown", "markdown.mdx" }, + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, }, -- [markdown markmap] pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy