Add dashboard and which_key plugins

This commit is contained in:
Evie Litherland-Smith 2023-02-20 16:43:33 +00:00
parent a7a5e03d9f
commit 1447abb240
5 changed files with 81 additions and 40 deletions

View file

@ -6,7 +6,33 @@ return {
config = function()
vim.opt.termguicolors = true
require "ui.fillchars"
require("catppuccin").setup(require "ui.catppuccin_opts")
vim.cmd "colorscheme catppuccin"
require("catppuccin").setup {
flavour = "macchiato",
-- transparent_background = true,
term_colors = true,
dim_inactive = {
enabled = true,
},
integrations = {
dashboard = true,
gitsigns = true,
indent_blankline = {
enabled = true,
colored_indent_levels = true,
},
cmp = true,
native_lsp = {
enabled = true,
},
notify = true,
nvimtree = true,
treesitter = true,
treesitter_context = true,
telescope = true,
lsp_trouble = true,
which_key = true,
},
}
vim.cmd.colorscheme "catppuccin"
end,
}

View file

@ -0,0 +1,38 @@
return {
"glepnir/dashboard-nvim",
event = "VimEnter",
config = function()
require("dashboard").setup {
theme = "hyper",
config = {
week_header = {
enable = true,
},
shortcut = {
{ desc = " Update", group = "@property", action = "Lazy update", key = "u" },
{
icon = "",
icon_hl = "@variable",
desc = "Files",
group = "Label",
action = "Telescope find_files",
key = "f",
},
{
desc = " Apps",
group = "DiagnosticHint",
action = "Telescope app",
key = "a",
},
{
desc = " dotfiles",
group = "Number",
action = "Telescope dotfiles",
key = "d",
},
},
},
}
end,
dependencies = { { "nvim-tree/nvim-web-devicons" } },
}

View file

@ -15,27 +15,18 @@ return {
local trouble = require "trouble.providers.telescope"
require("telescope").setup {
defaults = {
layout_strategy = "cursor",
mappings = {
i = { ["<c-t>"] = trouble.open_with_trouble },
n = { ["<c-t>"] = trouble.open_with_trouble },
},
},
extensions = {
fzf = {
fuzzy = true, -- false will only do exact matching
override_generic_sorter = true, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
-- the default case_mode is "smart_case"
},
aerial = {
show_nesting = {
["_"] = false,
python = true,
json = true,
yaml = true,
},
},
},
defaults = {
mappings = {
i = { ["<c-t>"] = trouble.open_with_trouble },
n = { ["<c-t>"] = trouble.open_with_trouble },
},
},
}

View file

@ -0,0 +1,8 @@
return {
"folke/which-key.nvim",
config = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
require("which-key").setup {}
end,
}

View file

@ -1,22 +0,0 @@
return {
flavour = "macchiato",
transparent_background = true,
term_colors = true,
integrations = {
gitsigns = true,
indent_blankline = {
enabled = true,
colored_indent_levels = true,
},
cmp = true,
native_lsp = {
enabled = true,
},
notify = true,
nvimtree = true,
treesitter = true,
treesitter_context = true,
telescope = true,
lsp_trouble = true,
},
}