Compare commits
3 Commits
c69a88e20f
...
0ee6fb54cd
Author | SHA1 | Date |
---|---|---|
|
0ee6fb54cd | |
|
5ea47d03d3 | |
|
8e01e20202 |
|
@ -125,6 +125,14 @@ local keymaps = {
|
||||||
cmd = '<ScrollWheelLeft>',
|
cmd = '<ScrollWheelLeft>',
|
||||||
desc = "Scroll leftways"
|
desc = "Scroll leftways"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
mode = { 'i', 'n', 'v' },
|
||||||
|
keys = '<C-b>',
|
||||||
|
cmd = function()
|
||||||
|
vim.cmd('Neotree toggle')
|
||||||
|
end,
|
||||||
|
desc = "Toggle neotree"
|
||||||
|
},
|
||||||
--
|
--
|
||||||
-- Tab (barbar) controls
|
-- Tab (barbar) controls
|
||||||
-- ..............................................
|
-- ..............................................
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -19,11 +19,24 @@ return {
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"nvim-tree/nvim-web-devicons",
|
"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",
|
cmd = "Neotree",
|
||||||
opts = {
|
opts = {
|
||||||
popup_border_style = ui.border,
|
popup_border_style = ui.border,
|
||||||
|
sources = {
|
||||||
|
"filesystem",
|
||||||
|
"document_symbols",
|
||||||
|
"git_status",
|
||||||
|
"diagnostics"
|
||||||
|
},
|
||||||
source_selector = {
|
source_selector = {
|
||||||
winbar = true,
|
winbar = true,
|
||||||
statusline = false,
|
statusline = false,
|
||||||
|
@ -33,15 +46,24 @@ return {
|
||||||
display_name = " Files "
|
display_name = " Files "
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source = "buffers",
|
source = "document_symbols",
|
||||||
display_name = " Buffers "
|
display_name = " Symbols "
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source = "document_symbols",
|
source = "diagnostics",
|
||||||
display_name = " Git "
|
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 = {
|
filesystem = {
|
||||||
bind_to_cwd = false,
|
bind_to_cwd = false,
|
||||||
follow_current_file = { enabled = true },
|
follow_current_file = { enabled = true },
|
||||||
|
|
Loading…
Reference in New Issue