omg it fucking works
This commit is contained in:
parent
ca85833670
commit
27a96fe230
|
@ -716,6 +716,58 @@ local plugins = {
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
enabled = not vim.g.started_by_firenvim,
|
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
|
return plugins
|
||||||
|
|
Loading…
Reference in New Issue