新增 niri/dms/gtk/qt/cava/fcitx5 等配置并添加 .gitignore
- 纳入版本管理: niri/(含 dms/), DankMaterialShell/, environment.d/, cava/, gtk-3.0/, gtk-4.0/, qt5ct/, qt6ct/, fcitx5/ - 新增 .gitignore: 排除 *.bak/*.backup*、fcitx5/conf/cached_layouts、 DankMaterialShell 运行时标志 - 同步已有的 kitty/nvim/.zshrc 修改
This commit is contained in:
@@ -15,9 +15,12 @@ return {
|
||||
local dapui = require("dapui")
|
||||
|
||||
-- 断点图标
|
||||
vim.fn.sign_define("DapBreakpoint", { text = "●", texthl = "DapBreakpoint", linehl = "", numhl = "" })
|
||||
vim.fn.sign_define("DapBreakpointCondition", { text = "◆", texthl = "DapBreakpointCondition", linehl = "", numhl = "" })
|
||||
vim.fn.sign_define("DapStopped", { text = "▶", texthl = "DapStopped", linehl = "CursorLine", numhl = "" })
|
||||
vim.fn.sign_define("DapBreakpoint",
|
||||
{ text = "●", texthl = "DapBreakpoint", linehl = "", numhl = "" })
|
||||
vim.fn.sign_define("DapBreakpointCondition",
|
||||
{ text = "◆", texthl = "DapBreakpointCondition", linehl = "", numhl = "" })
|
||||
vim.fn.sign_define("DapStopped",
|
||||
{ text = "▶", texthl = "DapStopped", linehl = "CursorLine", numhl = "" })
|
||||
|
||||
-- dap-ui 布局
|
||||
dapui.setup({
|
||||
@@ -44,13 +47,13 @@ return {
|
||||
})
|
||||
|
||||
-- 调试会话自动打开/关闭 UI
|
||||
dap.listeners.before.attach.dapui_config = function() dapui.open() end
|
||||
dap.listeners.before.launch.dapui_config = function() dapui.open() end
|
||||
dap.listeners.before.attach.dapui_config = function() dapui.open() end
|
||||
dap.listeners.before.launch.dapui_config = function() dapui.open() end
|
||||
dap.listeners.before.event_terminated.dapui_config = function() dapui.close() end
|
||||
dap.listeners.before.event_exited.dapui_config = function() dapui.close() end
|
||||
dap.listeners.before.event_exited.dapui_config = function() dapui.close() end
|
||||
|
||||
-- codelldb 适配器(Mason 安装路径)
|
||||
dap.adapters.codelldb = {
|
||||
dap.adapters.codelldb = {
|
||||
type = "server",
|
||||
port = "${port}",
|
||||
executable = {
|
||||
@@ -60,7 +63,7 @@ return {
|
||||
}
|
||||
|
||||
-- C/C++ 调试配置(非 CMake 项目,CMake 项目用 <leader>rd)
|
||||
dap.configurations.c = {
|
||||
dap.configurations.c = {
|
||||
{
|
||||
name = "Launch",
|
||||
type = "codelldb",
|
||||
@@ -73,7 +76,7 @@ return {
|
||||
args = {},
|
||||
},
|
||||
}
|
||||
dap.configurations.cpp = dap.configurations.c
|
||||
dap.configurations.cpp = dap.configurations.c
|
||||
end,
|
||||
},
|
||||
|
||||
|
||||
@@ -16,10 +16,10 @@ return {
|
||||
dependencies = { "williamboman/mason.nvim" },
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua_ls", -- Lua
|
||||
"bashls", -- Bash
|
||||
"clangd", -- C/C++
|
||||
"neocmake", -- CMake
|
||||
"lua_ls", -- Lua
|
||||
"bashls", -- Bash
|
||||
"clangd", -- C/C++
|
||||
"neocmake", -- CMake
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user