mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-01 23:19:25 +00:00
[neovim] Install mini.starter and update some plugins
This commit is contained in:
@ -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" },
|
||||
|
@ -11,5 +11,7 @@ illuminate.configure({
|
||||
"Trouble",
|
||||
"TelescopePrompt",
|
||||
"lspsagafinder",
|
||||
"mason",
|
||||
"starter",
|
||||
},
|
||||
})
|
||||
|
@ -1,5 +1,6 @@
|
||||
require("plugins.cmp")
|
||||
require("plugins.telescope")
|
||||
require("plugins.starter")
|
||||
require("plugins.treesitter")
|
||||
require("plugins.autopairs")
|
||||
require("plugins.comment")
|
||||
|
41
.config/nvim/lua/plugins/starter.lua
Normal file
41
.config/nvim/lua/plugins/starter.lua
Normal file
@ -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"),
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user