made a touch more vanilla

This commit is contained in:
Benjamin Kyd
2023-03-17 15:32:42 +00:00
parent 94c1007d78
commit 2a28a1a52f
3 changed files with 43 additions and 84 deletions

View File

@@ -1,39 +1,39 @@
local status, starter = pcall(require, "mini.starter")
if not status then
return
end
--local status, starter = pcall(require, "mini.starter")
--if not status then
--return
--end
starter.setup({
content_hooks = {
starter.gen_hook.adding_bullet(""),
starter.gen_hook.aligning("center", "center"),
},
evaluate_single = true,
footer = os.date(),
header = table.concat({
[[██████╗ ███████╗███╗ ██╗██╗ ██╗██╗███╗ ███╗]],
[[██╔══██╗██╔════╝████╗ ██║██║ ██║██║████╗ ████║]],
[[██████╔╝█████╗ ██╔██╗ ██║██║ ██║██║██╔████╔██║]],
[[██╔══██╗██╔══╝ ██║╚██╗██║╚██╗ ██╔╝██║██║╚██╔╝██║]],
[[██████╔╝███████╗██║ ╚████║ ╚████╔╝ ██║██║ ╚═╝ ██║]],
[[╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═══╝ ╚═╝╚═╝ ╚═╝]],
[[─────────────────────────────────────────────────]],
}, "\n"),
query_updaters = [[abcdefghilmoqrstuvwxyz0123456789_-,.ABCDEFGHIJKLMOQRSTUVWXYZ]],
items = {
{ action = "PackerSync", name = "U: Update Plugins", section = "Plugins" },
{ action = "PackerCompile", name = "R: Recompile Packer", section = "Plugins" },
{ action = "enew", name = "E: New Buffer", section = "Builtin actions" },
{ action = "qall!", name = "Q: Quit Neovim", section = "Builtin actions" },
},
})
--starter.setup({
--content_hooks = {
--starter.gen_hook.adding_bullet(""),
--starter.gen_hook.aligning("center", "center"),
--},
--evaluate_single = true,
--footer = os.date(),
--header = table.concat({
--[[██████╗ ███████╗███╗ ██╗██╗ ██╗██╗███╗ ███╗]],
--[[██╔══██╗██╔════╝████╗ ██║██║ ██║██║████╗ ████║]],
--[[██████╔╝█████╗ ██╔██╗ ██║██║ ██║██║██╔████╔██║]],
--[[██╔══██╗██╔══╝ ██║╚██╗██║╚██╗ ██╔╝██║██║╚██╔╝██║]],
--[[██████╔╝███████╗██║ ╚████║ ╚████╔╝ ██║██║ ╚═╝ ██║]],
--[[╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═══╝ ╚═╝╚═╝ ╚═╝]],
--[[─────────────────────────────────────────────────]],
--}, "\n"),
--query_updaters = [[abcdefghilmoqrstuvwxyz0123456789_-,.ABCDEFGHIJKLMOQRSTUVWXYZ]],
--items = {
--{ action = "PackerSync", name = "U: Update Plugins", section = "Plugins" },
--{ action = "PackerCompile", name = "R: Recompile Packer", section = "Plugins" },
--{ action = "enew", name = "E: New Buffer", section = "Builtin actions" },
--{ action = "qall!", name = "Q: Quit Neovim", section = "Builtin actions" },
--},
--})
vim.cmd([[
augroup MiniStarterJK
au!
au User MiniStarterOpened nmap <buffer> j <Cmd>lua MiniStarter.update_current_item('next')<CR>
au User MiniStarterOpened nmap <buffer> k <Cmd>lua MiniStarter.update_current_item('prev')<CR>
au User MiniStarterOpened nmap <buffer> <C-p> <Cmd>Telescope find_files<CR>
au User MiniStarterOpened nmap <buffer> <C-n> <Cmd>Telescope file_browser<CR>
augroup END
]])
--vim.cmd([[
--augroup MiniStarterJK
--au!
--au User MiniStarterOpened nmap <buffer> j <Cmd>lua MiniStarter.update_current_item('next')<CR>
--au User MiniStarterOpened nmap <buffer> k <Cmd>lua MiniStarter.update_current_item('prev')<CR>
--au User MiniStarterOpened nmap <buffer> <C-p> <Cmd>Telescope find_files<CR>
--au User MiniStarterOpened nmap <buffer> <C-n> <Cmd>Telescope file_browser<CR>
--augroup END
--]])

View File

@@ -1,21 +0,0 @@
require("noice").setup({
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
signature = {
enabled = false,
},
},
-- you can enable a preset for easier configuration
presets = {
bottom_search = true, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
},
})

View File

@@ -121,12 +121,12 @@ local packer = require('packer').startup(function(use)
-- VISUAL CHANGES
-- start page
use {
'echasnovski/mini.starter',
config = function ()
require('plugin-config/ministarter')
end
}
--use {
--'echasnovski/mini.starter',
--config = function ()
--require('plugin-config/ministarter')
--end
--}
-- nicer looking tab display
use {
@@ -157,28 +157,8 @@ local packer = require('packer').startup(function(use)
end
}
-- UX improvements
use {
"folke/noice.nvim",
requires = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
},
config = function ()
require('plugin-config/noice')
end
}
use {
'stevearc/dressing.nvim',
config = function ()
require('plugin-config/dressing')
end
}
use 'rcarriga/nvim-notify'
-- FUNCTIONAL CODING STUFF
-- lsp config