Disable cspell, too annoying...

Make toggleterm use tab layout, add term keymap to alpha, change alpha
icons to use codicons where possible instead
This commit is contained in:
Evie Litherland-Smith 2023-05-20 10:15:14 +01:00
parent ea3e4c64d0
commit 6ac8053ecc
3 changed files with 18 additions and 13 deletions

View file

@ -1,11 +1,7 @@
local null_ls = require "null-ls" local null_ls = require "null-ls"
local cspell = require "cspell"
return { return {
cspell.code_actions,
null_ls.builtins.code_actions.gitsigns, null_ls.builtins.code_actions.gitsigns,
cspell.diagnostics,
null_ls.builtins.formatting.alejandra, null_ls.builtins.formatting.alejandra,
null_ls.builtins.formatting.autoflake, null_ls.builtins.formatting.autoflake,
null_ls.builtins.formatting.beautysh, null_ls.builtins.formatting.beautysh,

View file

@ -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.section.buttons.val = {
dashboard.button("f", "󰍉 " .. " Find file", "<cmd>Telescope find_files <CR>"), dashboard.button("t", "" .. " Terminal", "<cmd>ToggleTerm direction=tab <CR>"),
dashboard.button("r", "󱀲 " .. " Recent files", "<cmd>Telescope oldfiles <CR>"), dashboard.button("f", "" .. " Find file", "<cmd>Telescope find_files <CR>"),
dashboard.button("o", "󰪶 " .. " Oil file browser", "<cmd>Oil <CR>"), dashboard.button("r", "" .. " Recent files", "<cmd>Telescope oldfiles <CR>"),
dashboard.button("n", "󱏒 " .. " Neo-tree", "<cmd>Neotree float <CR>"), dashboard.button("o", "" .. " Oil file browser", "<cmd>Oil <CR>"),
dashboard.button("n", "" .. " Neo-tree", "<cmd>Neotree float <CR>"),
dashboard.button("g", "󰊢 " .. " Git status", "<cmd>Neogit <CR>"), dashboard.button("g", "󰊢 " .. " Git status", "<cmd>Neogit <CR>"),
dashboard.button("c", "󰢻 " .. " Config", "<cmd>e $MYVIMRC <CR>"), dashboard.button("c", " " .. " Config", "<cmd>e $MYVIMRC <CR>"),
dashboard.button("l", "󰒲 " .. " Lazy", "<cmd>Lazy<CR>"), dashboard.button("l", "󰒲 " .. " Lazy", "<cmd>Lazy<CR>"),
dashboard.button("h", "󰋖 " .. " Help", "<cmd>Telescope help_tags <CR>"), dashboard.button("h", " " .. " Help", "<cmd>Telescope help_tags <CR>"),
dashboard.button("q", "󰗼 " .. " Quit", "<cmd>qa<CR>"), dashboard.button("q", " " .. " Quit", "<cmd>qa<CR>"),
} }
for _, button in ipairs(dashboard.section.buttons.val) do for _, button in ipairs(dashboard.section.buttons.val) do
button.opts.hl = "AlphaButtons" button.opts.hl = "AlphaButtons"

View file

@ -2,6 +2,6 @@ return {
"akinsho/toggleterm.nvim", "akinsho/toggleterm.nvim",
version = "*", version = "*",
cmd = { "ToggleTerm" }, cmd = { "ToggleTerm" },
init = function() vim.keymap.set("n", "<leader>tt", "<cmd>ToggleTerm direction=horizontal<CR>") end, init = function() vim.keymap.set("n", "<leader>tt", "<cmd>ToggleTerm direction=tab<CR>") end,
config = true, config = true,
} }