summaryrefslogtreecommitdiff
path: root/lua/lvim/core
diff options
context:
space:
mode:
authorChristian Chiarulli <[email protected]>2022-10-06 02:49:58 +0000
committerGitHub <[email protected]>2022-10-06 02:49:58 +0000
commit1eed9f572f29568a65cf2505e2dd37d1c2e7a309 (patch)
tree3ed1d7c5b1af887d5fc227beeaa98b3c4b664848 /lua/lvim/core
parentc1edf56826f507096e54400f37f2bdd9da369d26 (diff)
feat(dap): buffernames for elements, icons, hide dap-repl by default (#3156)
Diffstat (limited to 'lua/lvim/core')
-rw-r--r--lua/lvim/core/autocmds.lua9
-rw-r--r--lua/lvim/core/breadcrumbs.lua27
-rw-r--r--lua/lvim/core/dap.lua3
-rw-r--r--lua/lvim/core/notify.lua2
-rw-r--r--lua/lvim/core/terminal.lua2
5 files changed, 33 insertions, 10 deletions
diff --git a/lua/lvim/core/autocmds.lua b/lua/lvim/core/autocmds.lua
index 99c65c2e..ee5d8f13 100644
--- a/lua/lvim/core/autocmds.lua
+++ b/lua/lvim/core/autocmds.lua
@@ -29,7 +29,6 @@ function M.load_defaults()
]]
end,
})
-
local definitions = {
{
"TextYankPost",
@@ -56,6 +55,14 @@ function M.load_defaults()
{
"FileType",
{
+ group = "_hide_dap_repl",
+ pattern = "dap-repl",
+ command = "set nobuflisted",
+ },
+ },
+ {
+ "FileType",
+ {
group = "_filetype_settings",
pattern = "qf",
command = "set nobuflisted",
diff --git a/lua/lvim/core/breadcrumbs.lua b/lua/lvim/core/breadcrumbs.lua
index cdddd9e8..d6db55a5 100644
--- a/lua/lvim/core/breadcrumbs.lua
+++ b/lua/lvim/core/breadcrumbs.lua
@@ -84,13 +84,8 @@ M.winbar_filetype_exclude = {
"DressingSelect",
"Jaq",
"harpoon",
- "dapui_scopes",
- "dapui_breakpoints",
- "dapui_stacks",
- "dapui_watches",
"dap-repl",
"dap-terminal",
- "dapui_console",
"lab",
"Markdown",
"",
@@ -112,6 +107,28 @@ M.get_filename = function()
file_icon = lvim.icons.kind.File
end
+ local buf_ft = vim.bo.filetype
+
+ if buf_ft == "dapui_breakpoints" then
+ file_icon = lvim.icons.ui.Bug
+ end
+
+ if buf_ft == "dapui_stacks" then
+ file_icon = lvim.icons.ui.Stacks
+ end
+
+ if buf_ft == "dapui_scopes" then
+ file_icon = lvim.icons.ui.Scopes
+ end
+
+ if buf_ft == "dapui_watches" then
+ file_icon = lvim.icons.ui.Watches
+ end
+
+ if buf_ft == "dapui_console" then
+ file_icon = lvim.icons.ui.DebugConsole
+ end
+
local navic_text = vim.api.nvim_get_hl_by_name("Normal", true)
vim.api.nvim_set_hl(0, "Winbar", { fg = navic_text.foreground })
diff --git a/lua/lvim/core/dap.lua b/lua/lvim/core/dap.lua
index 6372bf6f..4045390b 100644
--- a/lua/lvim/core/dap.lua
+++ b/lua/lvim/core/dap.lua
@@ -2,7 +2,7 @@ local M = {}
M.config = function()
lvim.builtin.dap = {
- active = true,
+ active = false,
on_config_done = nil,
breakpoint = {
text = lvim.icons.ui.Bug,
@@ -119,4 +119,3 @@ M.setup_ui = function()
end
return M
-
diff --git a/lua/lvim/core/notify.lua b/lua/lvim/core/notify.lua
index df6ce57e..272fdced 100644
--- a/lua/lvim/core/notify.lua
+++ b/lua/lvim/core/notify.lua
@@ -3,7 +3,7 @@ local M = {}
local Log = require "lvim.core.log"
local defaults = {
- active = true,
+ active = false,
on_config_done = nil,
opts = {
---@usage Animation style one of { "fade", "slide", "fade_in_slide_out", "static" }
diff --git a/lua/lvim/core/terminal.lua b/lua/lvim/core/terminal.lua
index 006452e1..65cba56d 100644
--- a/lua/lvim/core/terminal.lua
+++ b/lua/lvim/core/terminal.lua
@@ -3,7 +3,7 @@ local Log = require "lvim.core.log"
M.config = function()
lvim.builtin["terminal"] = {
- active = true,
+ active = false,
on_config_done = nil,
-- size can be a number or function which is passed the current terminal
size = 20,