From 21e220944f460a70745a118539f6c75b0aca694f Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Sat, 4 Feb 2023 14:59:28 +0100 Subject: [PATCH] [neovim] Install mini.starter and update some plugins --- .config/nvim/lazy-lock.json | 15 ++++----- .config/nvim/lua/core/plugins.lua | 7 +++-- .config/nvim/lua/plugins/illuminate.lua | 2 ++ .config/nvim/lua/plugins/init.lua | 1 + .config/nvim/lua/plugins/starter.lua | 41 +++++++++++++++++++++++++ 5 files changed, 56 insertions(+), 10 deletions(-) create mode 100644 .config/nvim/lua/plugins/starter.lua diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 2ba905f..633561f 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -15,27 +15,28 @@ "git-blame.nvim": { "branch": "master", "commit": "5ddf157139ecfc0d2161f00c2cce4874578dc355" }, "gitsigns.nvim": { "branch": "main", "commit": "bb808fc7376ed7bac0fbe8f47b83d4bf01738167" }, "go.nvim": { "branch": "master", "commit": "10349e1e430d00bc314c1d4abb043ac66ed219d9" }, - "guihua.lua": { "branch": "master", "commit": "da889f7da0185471c67429f258dab366bf081688" }, + "guihua.lua": { "branch": "master", "commit": "438c6cdea216b6667e87e3721ad43e846a34d747" }, "indent-blankline.nvim": { "branch": "master", "commit": "8299fe7703dfff4b1752aeed271c3b95281a952d" }, "lazy.nvim": { "branch": "main", "commit": "3d2dcb2d5ef99106c5ff412da88c6f59a9f8a693" }, - "lspsaga.nvim": { "branch": "main", "commit": "017bad7edfe69ffcf25c91db319332fa3d977dfc" }, + "lspsaga.nvim": { "branch": "main", "commit": "e5d58ff369e4e920bdf259f2998d2db64e454d85" }, "lualine-lsp-progress": { "branch": "master", "commit": "56842d097245a08d77912edf5f2a69ba29f275d7" }, "lualine.nvim": { "branch": "master", "commit": "0050b308552e45f7128f399886c86afefc3eb988" }, "markdown-preview.nvim": { "branch": "master", "commit": "02cc3874738bc0f86e4b91f09b8a0ac88aef8e96" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "53f3a8bdcb77d4a95b082fd57e12173f353c6c3e" }, - "mason.nvim": { "branch": "main", "commit": "24846a00941ec020c8addc7f52040a1b2fc12174" }, + "mason.nvim": { "branch": "main", "commit": "222bf1136215634d084f189d31780618876d06e3" }, + "mini.starter": { "branch": "main", "commit": "970fe9cd04f51e248daf8377b86a3c3a99ad35ce" }, "neo-tree.nvim": { "branch": "v2.x", "commit": "8238865e1d9c61f1a260c290653f2c419503e0a9" }, "nui.nvim": { "branch": "main", "commit": "d147222a1300901656f3ebd5b95f91732785a329" }, - "null-ls.nvim": { "branch": "main", "commit": "c3e678110d5f31854c6575cf4bda3b82f3d4a884" }, + "null-ls.nvim": { "branch": "main", "commit": "8f5d730021497233c39d3adbf4b8043d4be163f8" }, "nvim-autopairs": { "branch": "master", "commit": "5a3523ddb573804752de6c021c5cb82e267b79ca" }, - "nvim-cmp": { "branch": "main", "commit": "e7e2ef7031db8e0cfad7ad9916ec766ddd9dbb3b" }, + "nvim-cmp": { "branch": "main", "commit": "cfafe0a1ca8933f7b7968a287d39904156f2c57d" }, "nvim-dap": { "branch": "master", "commit": "700a3c7d6fbe5b07bee74e9952b456120d355c47" }, "nvim-dap-ui": { "branch": "master", "commit": "1e21b3b50e67700e32285b5a74e645311fd8bbea" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "7f7f2af549e72a0b7bddc3b4f827beb027ea8ce3" }, "nvim-lspconfig": { "branch": "master", "commit": "902d6aa31450d26e11bedcbef8af5b6fe2e1ffe8" }, - "nvim-treesitter": { "branch": "master", "commit": "69867ffe7e05559fdb055f6b5a2589fc6bee1070" }, + "nvim-treesitter": { "branch": "master", "commit": "bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "a0f89563ba36b3bacd62cf967b46beb4c2c29e52" }, - "nvim-web-devicons": { "branch": "master", "commit": "a421d183ef37dfa13f51a5805bed2381aebf9080" }, + "nvim-web-devicons": { "branch": "master", "commit": "2b96193abe4372e18e4f4533895a42a466d53c17" }, "plenary.nvim": { "branch": "master", "commit": "9a0d3bf7b832818c042aaf30f692b081ddd58bd9" }, "projections.nvim": { "branch": "main", "commit": "6820ad90343b5ec78f236bbe0e13d9c8078a0c48" }, "sad.nvim": { "branch": "master", "commit": "1cdf3f25589dc92854913004443ba0e53bd103ad" }, diff --git a/.config/nvim/lua/core/plugins.lua b/.config/nvim/lua/core/plugins.lua index 942d705..c949313 100644 --- a/.config/nvim/lua/core/plugins.lua +++ b/.config/nvim/lua/core/plugins.lua @@ -42,13 +42,13 @@ lazy.setup({ vim.cmd([[colorscheme tokyonight]]) end, }, - -- Plugins { "nvim-lua/plenary.nvim", lazy = true }, + { "echasnovski/mini.starter", lazy = "VimEnter", version = "*" }, { "windwp/nvim-autopairs" }, { "numToStr/Comment.nvim", version = "v0.*" }, { "JoosepAlviste/nvim-ts-context-commentstring" }, - { "kyazdani42/nvim-web-devicons", lazy = true }, + { "nvim-tree/nvim-web-devicons", lazy = true }, { "akinsho/bufferline.nvim", event = "VeryLazy", version = "v3.*" }, { "moll/vim-bbye" }, { "nvim-lualine/lualine.nvim", event = "VeryLazy" }, @@ -85,7 +85,8 @@ lazy.setup({ -- LSP { - "neovim/nvim-lspconfig", event = "BufReadPre", + "neovim/nvim-lspconfig", + event = "BufReadPre", }, { "williamboman/mason.nvim" }, { "williamboman/mason-lspconfig.nvim" }, diff --git a/.config/nvim/lua/plugins/illuminate.lua b/.config/nvim/lua/plugins/illuminate.lua index 58cee91..58fee83 100644 --- a/.config/nvim/lua/plugins/illuminate.lua +++ b/.config/nvim/lua/plugins/illuminate.lua @@ -11,5 +11,7 @@ illuminate.configure({ "Trouble", "TelescopePrompt", "lspsagafinder", + "mason", + "starter", }, }) diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua index 5855b7a..fbde523 100644 --- a/.config/nvim/lua/plugins/init.lua +++ b/.config/nvim/lua/plugins/init.lua @@ -1,5 +1,6 @@ require("plugins.cmp") require("plugins.telescope") +require("plugins.starter") require("plugins.treesitter") require("plugins.autopairs") require("plugins.comment") diff --git a/.config/nvim/lua/plugins/starter.lua b/.config/nvim/lua/plugins/starter.lua new file mode 100644 index 0000000..63db5f4 --- /dev/null +++ b/.config/nvim/lua/plugins/starter.lua @@ -0,0 +1,41 @@ +local status_ok, starter = pcall(require, "mini.starter") +if not status_ok then + return +end + +local pad = string.rep(" ", 4) +local new_section = function(name, action, section) + return { name = name, action = action, section = pad .. section } +end + +local logo = table.concat({ + "", + "", + "", + "", + "███╗ ██╗██╗ ██╗██╗███╗ ███╗", + "████╗ ██║██║ ██║██║████╗ ████║", + "██╔██╗██║╚██╗ ██╔╝██║██╔████╔██║", + "██║╚████║ ╚████╔╝ ██║██║╚██╔╝██║", + "██║ ╚███║ ╚██╔╝ ██║██║ ╚═╝ ██║", + "╚═╝ ╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝", +}, "\n") + +starter.setup({ + evaluate_single = true, + header = logo, + footer = "", + items = { + new_section("Projects", "Telescope projections", "Telescope"), + new_section("Recent files", "Telescope oldfiles", "Telescope"), + new_section("New file", "ene | startinsert", "Built-in"), + new_section("Quit", "qa", "Built-in"), + new_section("Lazy", "Lazy", "Config"), + new_section("Mason", "Mason", "Config"), + new_section("Tree-sitter", "TSUpdate", "Config"), + }, + content_hooks = { + starter.gen_hook.adding_bullet(pad .. " ", false), + starter.gen_hook.aligning("center", "top"), + }, +})