dashboard
This commit is contained in:
parent
e626579fd9
commit
24b7906f2c
|
@ -48,7 +48,8 @@ vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]
|
||||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' })
|
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' })
|
||||||
|
|
||||||
-- let me out!!!
|
-- let me out!!!
|
||||||
vim.keymap.set({ 'n', 'v' }, 'qq', '<cmd>q!<cr>', { desc = '[Q]uit the current window' })
|
vim.keymap.set({ 'n', 'v' }, 'qqq', '<cmd>bd!<cr>', { desc = '[Q]uit the current window' })
|
||||||
|
vim.keymap.set({ 'n', 'v' }, '<A-c>', '<cmd>bw!<cr>', { desc = '[Q]uit the current window' })
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
-- Workspace, buffer and window manipulation
|
-- Workspace, buffer and window manipulation
|
||||||
|
@ -66,6 +67,8 @@ vim.keymap.set('n', '<C-Left>', '<cmd>vertical resize +1<cr>', { desc = 'Resize
|
||||||
vim.keymap.set('n', '<C-Right>', '<cmd>vertical resize -1<cr>', { desc = 'Resize window vertically' })
|
vim.keymap.set('n', '<C-Right>', '<cmd>vertical resize -1<cr>', { desc = 'Resize window vertically' })
|
||||||
|
|
||||||
-- tabs/workspaces
|
-- tabs/workspaces
|
||||||
|
vim.keymap.set('n', '<Tab>', '<cmd>bnext<cr>', { desc = 'Next Buffer' })
|
||||||
|
vim.keymap.set('n', '<S-Tab>', '<cmd>bprev<cr>', { desc = 'Last Buffer' })
|
||||||
vim.keymap.set('n', '<leader>wn', '<cmd>tabnew<cr>', { desc = 'Open a [N]ew [W]orkspace/Tab' })
|
vim.keymap.set('n', '<leader>wn', '<cmd>tabnew<cr>', { desc = 'Open a [N]ew [W]orkspace/Tab' })
|
||||||
vim.keymap.set('n', '<leader>wc', '<cmd>tabclose<cr>', { desc = '[C]lose a [W]orkspace/Tab' })
|
vim.keymap.set('n', '<leader>wc', '<cmd>tabclose<cr>', { desc = '[C]lose a [W]orkspace/Tab' })
|
||||||
vim.keymap.set('n', '<leader>wk', '<cmd>tabnext<cr>', { desc = 'Next [W]orkspace/Tab' })
|
vim.keymap.set('n', '<leader>wk', '<cmd>tabnext<cr>', { desc = 'Next [W]orkspace/Tab' })
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
'zaldih/themery.nvim',
|
||||||
|
priority = 1000, -- Make sure to load this before all the other start plugins.
|
||||||
|
init = function()
|
||||||
|
require 'settings.theme'
|
||||||
|
end,
|
||||||
|
config = function()
|
||||||
|
require('themery').setup {
|
||||||
|
themes = {
|
||||||
|
{
|
||||||
|
name = 'tokyonight',
|
||||||
|
colorscheme = 'tokyonight',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = 'tokyonight-day',
|
||||||
|
colorscheme = 'tokyonight-day',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = 'tokyonight-moon',
|
||||||
|
colorscheme = 'tokyonight-moon',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = 'tokyonight-storm',
|
||||||
|
colorscheme = 'tokyonight-storm',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
themeConfigFile = '~/.config/nvim/lua/settings/theme.lua',
|
||||||
|
livePreview = true, -- Apply theme while browsing. Default to true.
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{ 'folke/tokyonight.nvim' },
|
||||||
|
}
|
|
@ -167,7 +167,9 @@ return {
|
||||||
'echasnovski/mini.trailspace',
|
'echasnovski/mini.trailspace',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
event = { 'BufReadPost', 'BufNewFile' },
|
event = { 'BufReadPost', 'BufNewFile' },
|
||||||
opts = {},
|
opts = {
|
||||||
|
only_in_normal_buffers = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'itchyny/vim-cursorword',
|
'itchyny/vim-cursorword',
|
||||||
|
@ -351,23 +353,6 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ -- You can easily change to a different colorscheme.
|
|
||||||
-- Change the name of the colorscheme plugin below, and then
|
|
||||||
-- change the command in the config to whatever the name of that colorscheme is.
|
|
||||||
--
|
|
||||||
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
|
|
||||||
'folke/tokyonight.nvim',
|
|
||||||
priority = 1000, -- Make sure to load this before all the other start plugins.
|
|
||||||
init = function()
|
|
||||||
-- Load the colorscheme here.
|
|
||||||
-- Like many other themes, this one has different styles, and you could load
|
|
||||||
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
|
||||||
vim.cmd.colorscheme 'tokyonight-night'
|
|
||||||
|
|
||||||
-- You can configure highlights by doing something like:
|
|
||||||
vim.cmd.hi 'Comment gui=none'
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'folke/noice.nvim',
|
'folke/noice.nvim',
|
||||||
enabled = not vim.g.started_by_firenvim,
|
enabled = not vim.g.started_by_firenvim,
|
||||||
|
@ -607,4 +592,51 @@ return {
|
||||||
require('bufferline').setup {}
|
require('bufferline').setup {}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'MeanderingProgrammer/dashboard.nvim',
|
||||||
|
event = 'VimEnter',
|
||||||
|
dependencies = {
|
||||||
|
'MaximilianLloyd/ascii.nvim',
|
||||||
|
},
|
||||||
|
init = function()
|
||||||
|
vim.api.nvim_create_autocmd({ 'BufWinEnter', 'VimEnter' }, {
|
||||||
|
pattern = { 'dashboard', 'text', 'help', '*' },
|
||||||
|
callback = function()
|
||||||
|
vim.b.minitrailspace_disable = true
|
||||||
|
vim.opt_local.list = false
|
||||||
|
vim.opt_local.colorcolumn = '0'
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
config = function()
|
||||||
|
-- Do not show trailing space in unmodifiable types
|
||||||
|
require('dashboard').setup {
|
||||||
|
-- Dashboard header
|
||||||
|
header = require('ascii').art.text.neovim.sharp,
|
||||||
|
-- List of directory paths, or functions that return paths
|
||||||
|
directories = {
|
||||||
|
'~/.config/nvim',
|
||||||
|
'~/Documents/code',
|
||||||
|
'~/Documents/novel',
|
||||||
|
},
|
||||||
|
-- Format to display date in
|
||||||
|
date_format = nil,
|
||||||
|
-- Sections to add at bottom, these can be string references to
|
||||||
|
-- functions in sections.lua, custom strings, or custom functions
|
||||||
|
footer = {},
|
||||||
|
-- Gets called after directory is changed and is provided with the
|
||||||
|
-- directory path as an argument
|
||||||
|
on_load = function(path)
|
||||||
|
-- Do nothing
|
||||||
|
end,
|
||||||
|
-- Highlight groups to use for various components
|
||||||
|
highlight_groups = {
|
||||||
|
header = 'Constant',
|
||||||
|
icon = 'Type',
|
||||||
|
directory = 'Delimiter',
|
||||||
|
hotkey = 'Statement',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,24 @@ return {
|
||||||
-- Enable `lukas-reineke/indent-blankline.nvim`
|
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||||
-- See `:help ibl`
|
-- See `:help ibl`
|
||||||
main = 'ibl',
|
main = 'ibl',
|
||||||
opts = {},
|
opts = {
|
||||||
|
indentLine_enabled = 1,
|
||||||
|
filetype_exclude = {
|
||||||
|
'help',
|
||||||
|
'terminal',
|
||||||
|
'lazy',
|
||||||
|
'lspinfo',
|
||||||
|
'TelescopePrompt',
|
||||||
|
'TelescopeResults',
|
||||||
|
'mason',
|
||||||
|
'dashboard',
|
||||||
|
'',
|
||||||
|
},
|
||||||
|
buftype_exclude = { 'terminal' },
|
||||||
|
show_trailing_blankline_indent = false,
|
||||||
|
show_first_indent_level = false,
|
||||||
|
show_current_context = true,
|
||||||
|
show_current_context_start = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
-- Themery block
|
||||||
|
-- This block will be replaced by Themery.
|
||||||
|
vim.cmd("colorscheme tokyonight-storm")
|
||||||
|
vim.g.theme_id = 4
|
||||||
|
-- end themery block
|
Loading…
Reference in New Issue