Compare commits

..

3 Commits

Author SHA1 Message Date
Sven Vogel 0ee6fb54cd feat: add dropbar plugin
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 24s Details
2024-11-11 00:44:40 +01:00
Sven Vogel 5ea47d03d3 feat: add diagnostic and document symbols source to neo-tree 2024-11-10 22:34:23 +01:00
Sven Vogel 8e01e20202 feat: add keybind to toggle neol-tree 2024-11-10 20:13:52 +01:00
3 changed files with 70 additions and 6 deletions

View File

@ -125,6 +125,14 @@ local keymaps = {
cmd = '<ScrollWheelLeft>',
desc = "Scroll leftways"
},
{
mode = { 'i', 'n', 'v' },
keys = '<C-b>',
cmd = function()
vim.cmd('Neotree toggle')
end,
desc = "Toggle neotree"
},
--
-- Tab (barbar) controls
-- ..............................................

34
lua/plugins/dropbar.lua Normal file
View File

@ -0,0 +1,34 @@
--
-- IDE-like breadcrumbs
--
-- Source: https://github.com/Bekaboo/dropbar.nvim
-- ..............................................
--
-- Author: Sven Vogel
-- Created: 10.11.2024
-- Edited: 10.11.2024
--
-- ==============================================
local ui = require 'config.ui'
return {
{
'Bekaboo/dropbar.nvim',
dependencies = {
"nvim-tree/nvim-web-devicons",
"onsails/lspkind.nvim"
},
opts = {
menu = {
preview = false,
scrollbar = {
enable = false
},
win_configs = {
border = ui.border
}
}
}
}
}

View File

@ -19,11 +19,24 @@ return {
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim"
"MunifTanjim/nui.nvim",
--
-- List language server diagnostics
--
-- Source: https://github.com/mrbjarksen/neo-tree-diagnostics.nvim
-- ..............................................
--
'mrbjarksen/neo-tree-diagnostics.nvim'
},
cmd = "Neotree",
opts = {
popup_border_style = ui.border,
sources = {
"filesystem",
"document_symbols",
"git_status",
"diagnostics"
},
source_selector = {
winbar = true,
statusline = false,
@ -33,15 +46,24 @@ return {
display_name = " 󰉓 Files "
},
{
source = "buffers",
display_name = " 󰈚 Buffers "
source = "document_symbols",
display_name = "  Symbols "
},
{
source = "document_symbols",
display_name = " 󰊢 Git "
},
source = "diagnostics",
display_name = "  Diagnostics "
}
},
},
diagnostics = {
follow_current_file = { -- May also be set to `true` or `false`
enabled = true, -- This will find and focus the file in the active buffer every time
always_focus_file = false, -- Focus the followed file, even when focus is currently on a diagnostic item belonging to that file
expand_followed = true, -- Ensure the node of the followed file is expanded
leave_dirs_open = true, -- `false` closes auto expanded dirs, such as with `:Neotree reveal`
leave_files_open = true, -- `false` closes auto expanded files, such as with `:Neotree reveal`
}
},
filesystem = {
bind_to_cwd = false,
follow_current_file = { enabled = true },