omg it fucking works

This commit is contained in:
Christoph J. Scherr 2024-02-05 15:18:43 +01:00
parent ca85833670
commit 27a96fe230
1 changed files with 52 additions and 0 deletions

View File

@ -716,6 +716,58 @@ local plugins = {
"hrsh7th/nvim-cmp",
enabled = not vim.g.started_by_firenvim,
},
{
"ziontee113/icon-picker.nvim",
keys = {
{ "<C-I>", "<cmd>IconPickerNormal<CR>", desc = "pick icon" },
{ "y<C-I>", "<cmd>IconPickerYank<CR>", desc = "yank icon" },
},
cmd = { "IconPickerInsert", "IconPickerYank", "IconPickerNormal" },
config = function()
require("icon-picker").setup { disable_legacy_commands = true }
end,
},
{
"mfussenegger/nvim-dap",
init = function()
require("core.utils").load_mappings "debug"
end,
config = function()
local dap = require "dap"
dap.adapters.gdb = {
type = "executable",
command = "gdb",
args = { "-i", "dap" }, -- NOTE: gdb sometimes has no built in dap interface, LMDE6 has this i
-- think. Don't bother with compiling from source
}
dap.adapters.codelldb = {
type = "server",
port = "${port}",
executable = {
-- CHANGE THIS to your path!
command = "/home/plex/.local/share/codelldb/extension/adapter/codelldb",
args = { "--port", "${port}" },
-- On windows you may have to uncomment this:
-- detached = false,
},
}
dap.configurations.cpp = {
{
name = "Launch file",
type = "codelldb",
request = "launch",
program = function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
},
}
dap.configurations.rust = dap.configurations.cpp
dap.configurations.c = dap.configurations.cpp
end,
},
}
return plugins