Update nvim & sway
This commit is contained in:
@@ -1,32 +1,41 @@
|
|||||||
return {
|
return {
|
||||||
"mfussenegger/nvim-dap",
|
{
|
||||||
config = function()
|
"mfussenegger/nvim-dap",
|
||||||
local dap = require('dap')
|
config = function()
|
||||||
dap.adapters.codelldb = {
|
local dap = require('dap')
|
||||||
type = "executable",
|
dap.adapters.codelldb = {
|
||||||
command = "codelldb"
|
type = "executable",
|
||||||
|
command = "codelldb"
|
||||||
|
}
|
||||||
|
|
||||||
|
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.c = dap.configurations.cpp
|
||||||
|
dap.configurations.rust = dap.configurations.cpp
|
||||||
|
dap.configurations.zig = dap.configurations.cpp
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>dt", ":DapToggleBreakpoint<CR>")
|
||||||
|
vim.keymap.set("n", "<leader>dc", ":DapContinue<CR>")
|
||||||
|
vim.keymap.set("n", "<leader>dx", ":DapTerminate<CR>")
|
||||||
|
vim.keymap.set("n", "<leader>do", ":DapStepOver<CR>")
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rcarriga/nvim-dap-ui",
|
||||||
|
dependencies = {
|
||||||
|
"mfussenegger/nvim-dap",
|
||||||
|
"nvim-neotest/nvim-nio"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
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.c = dap.configurations.cpp
|
|
||||||
dap.configurations.rust = dap.configurations.cpp
|
|
||||||
dap.configurations.zig = dap.configurations.cpp
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>dt", ":DapToggleBreakpoint<CR>")
|
|
||||||
vim.keymap.set("n", "<leader>dc", ":DapContinue<CR>")
|
|
||||||
vim.keymap.set("n", "<leader>dx", ":DapTerminate<CR>")
|
|
||||||
vim.keymap.set("n", "<leader>do", ":DapStepOver<CR>")
|
|
||||||
end
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,6 +220,7 @@ for_window [title="Unity"] no_focus, move position 400 400
|
|||||||
for_window [class="Unity" title="Project Settings"] floating enable
|
for_window [class="Unity" title="Project Settings"] floating enable
|
||||||
for_window [class="Unity" title=".*\.AnnotationWindow"] floating enable
|
for_window [class="Unity" title=".*\.AnnotationWindow"] floating enable
|
||||||
for_window [class="Unity" title="Color"] floating enable
|
for_window [class="Unity" title="Color"] floating enable
|
||||||
|
for_window [app_id="Bitwarden"] floating enable
|
||||||
|
|
||||||
assign [class="Unity"] workspace number 3
|
assign [class="Unity"] workspace number 3
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user