This commit is contained in:
Omixxx 2023-04-22 13:25:37 +02:00
parent ee611e742f
commit 539b58d3fb
5 changed files with 119 additions and 20 deletions

View File

@ -288,12 +288,6 @@ vim.api.nvim_set_keymap('n', '<C-h>', '<C-w>h', { noremap = true, silent = true
-- Mappa Ctrl+j per spostarsi in basso nel buffer corrente
vim.api.nvim_set_keymap('n', '<C-j>', '<C-w>j', { noremap = true, silent = true })
-- mappatura per spostarsi a sinistra tra le finestre
vim.api.nvim_set_keymap('n', '<S-h>', ':BufferPrevious<CR>', { noremap = true, silent = true })
-- mappatura per spostarsi a destra tra le finestre
vim.api.nvim_set_keymap('n', '<S-l>', ':BufferNext<CR>', { noremap = true, silent = true })
-- close the current buffer
vim.api.nvim_set_keymap('n', '<leader>cb', ':bd<CR>', { noremap = true, silent = true })

View File

@ -1,4 +1,4 @@
return {
'romgrk/barbar.nvim',
dependencies = 'nvim-tree/nvim-web-devicons',
}
-- return {
-- 'romgrk/barbar.nvim',
-- dependencies = 'nvim-tree/nvim-web-devicons',
-- }

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

@ -0,0 +1,77 @@
return {
"ghillb/cybu.nvim",
branch = "main", -- timely updates
-- branch = "v1.x", -- won't receive breaking changes
requires = { "nvim-tree/nvim-web-devicons", "nvim-lua/plenary.nvim" }, -- optional for icon support
config = function()
local ok, cybu = pcall(require, "cybu")
if not ok then
return
end
cybu.setup({
position = {
relative_to = "win", -- win, editor, cursor
anchor = "topcenter", -- topleft, topcenter, topright,
-- centerleft, center, centerright,
-- bottomleft, bottomcenter, bottomright
vertical_offset = 10, -- vertical offset from anchor in lines
horizontal_offset = 0, -- vertical offset from anchor in columns
max_win_height = 5, -- height of cybu window in lines
max_win_width = 0.5, -- integer for absolute in columns
-- float for relative to win/editor width
},
style = {
path = "tail", -- absolute, relative, tail (filename only)
path_abbreviation = "none", -- none, shortened
border = "rounded", -- single, double, rounded, none
separator = " ", -- string used as separator
prefix = "", -- string used as prefix for truncated paths
padding = 1, -- left & right padding in number of spaces
hide_buffer_id = true, -- hide buffer IDs in window
devicons = {
enabled = true, -- enable or disable web dev icons
colored = true, -- enable color for web dev icons
truncate = true, -- truncate wide icons to one char width
},
highlights = {
-- see highlights via :highlight
current_buffer = "CybuFocus", -- current / selected buffer
adjacent_buffers = "CybuAdjacent", -- buffers not in focus
background = "CybuBackground", -- window background
border = "CybuBorder", -- border of the window
},
},
behavior = {
-- set behavior for different modes
mode = {
default = {
switch = "immediate", -- immediate, on_close
view = "paging", -- paging, rolling
},
last_used = {
switch = "on_close", -- immediate, on_close
view = "paging", -- paging, rolling
},
auto = {
view = "paging", -- paging, rolling
},
},
show_on_autocmd = false, -- event to trigger cybu (eg. "BufEnter")
},
display_time = 750, -- time the cybu window is displayed
exclude = { -- filetypes, cybu will not be active
"neo-tree",
"fugitive",
"qf",
},
filter = {
unlisted = true, -- filter & fallback for unlisted buffers
},
fallback = function()
end, -- arbitrary fallback function
-- used in excluded filetypes
})
vim.keymap.set("n", "<S-h>", "<Plug>(CybuPrev)")
vim.keymap.set("n", "<S-l>", "<Plug>(CybuNext)")
end,
}

View File

@ -1,10 +0,0 @@
return {
'glepnir/dashboard-nvim',
event = 'VimEnter',
config = function()
require('dashboard').setup {
-- config
}
end,
dependencies = { { 'nvim-tree/nvim-web-devicons' } }
}