From 6ac8053ecc35a696fe018b305e71f20d6e63282c Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 20 May 2023 10:15:14 +0100 Subject: [PATCH] Disable cspell, too annoying... Make toggleterm use tab layout, add term keymap to alpha, change alpha icons to use codicons where possible instead --- lua/lsp/null_ls_sources.lua | 4 ---- lua/plugins/alpha.lua | 25 +++++++++++++++++-------- lua/plugins/toggleterm.lua | 2 +- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/lua/lsp/null_ls_sources.lua b/lua/lsp/null_ls_sources.lua index c9707f8..c827eaa 100644 --- a/lua/lsp/null_ls_sources.lua +++ b/lua/lsp/null_ls_sources.lua @@ -1,11 +1,7 @@ local null_ls = require "null-ls" -local cspell = require "cspell" return { - cspell.code_actions, null_ls.builtins.code_actions.gitsigns, - cspell.diagnostics, - null_ls.builtins.formatting.alejandra, null_ls.builtins.formatting.autoflake, null_ls.builtins.formatting.beautysh, diff --git a/lua/plugins/alpha.lua b/lua/plugins/alpha.lua index cddb017..876ca75 100644 --- a/lua/plugins/alpha.lua +++ b/lua/plugins/alpha.lua @@ -12,17 +12,26 @@ return { ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ]] - dashboard.section.header.val = vim.split(logo, "\n") + -- dashboard.section.header.val = vim.split(logo, "\n") + dashboard.section.header.val = { + [[ __ ]], + [[ ___ ___ ___ __ __ /\_\ ___ ___ ]], + [[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]], + [[/\ \/\ \/\ __//\ \_\ \ \ \_/ |\ \ \/\ \/\ \/\ \ ]], + [[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]], + [[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]], + } dashboard.section.buttons.val = { - dashboard.button("f", "󰍉 " .. " Find file", "Telescope find_files "), - dashboard.button("r", "󱀲 " .. " Recent files", "Telescope oldfiles "), - dashboard.button("o", "󰪶 " .. " Oil file browser", "Oil "), - dashboard.button("n", "󱏒 " .. " Neo-tree", "Neotree float "), + dashboard.button("t", " " .. " Terminal", "ToggleTerm direction=tab "), + dashboard.button("f", " " .. " Find file", "Telescope find_files "), + dashboard.button("r", " " .. " Recent files", "Telescope oldfiles "), + dashboard.button("o", " " .. " Oil file browser", "Oil "), + dashboard.button("n", " " .. " Neo-tree", "Neotree float "), dashboard.button("g", "󰊢 " .. " Git status", "Neogit "), - dashboard.button("c", "󰢻 " .. " Config", "e $MYVIMRC "), + dashboard.button("c", " " .. " Config", "e $MYVIMRC "), dashboard.button("l", "󰒲 " .. " Lazy", "Lazy"), - dashboard.button("h", "󰋖 " .. " Help", "Telescope help_tags "), - dashboard.button("q", "󰗼 " .. " Quit", "qa"), + dashboard.button("h", " " .. " Help", "Telescope help_tags "), + dashboard.button("q", " " .. " Quit", "qa"), } for _, button in ipairs(dashboard.section.buttons.val) do button.opts.hl = "AlphaButtons" diff --git a/lua/plugins/toggleterm.lua b/lua/plugins/toggleterm.lua index c2b8bcc..9a70a68 100644 --- a/lua/plugins/toggleterm.lua +++ b/lua/plugins/toggleterm.lua @@ -2,6 +2,6 @@ return { "akinsho/toggleterm.nvim", version = "*", cmd = { "ToggleTerm" }, - init = function() vim.keymap.set("n", "tt", "ToggleTerm direction=horizontal") end, + init = function() vim.keymap.set("n", "tt", "ToggleTerm direction=tab") end, config = true, }