diff --git a/.config/nvim/lua/plugins/dap.lua b/.config/nvim/lua/plugins/dap.lua index dbd04fc..cc04d3d 100644 --- a/.config/nvim/lua/plugins/dap.lua +++ b/.config/nvim/lua/plugins/dap.lua @@ -1,32 +1,41 @@ return { - "mfussenegger/nvim-dap", - config = function() - local dap = require('dap') - dap.adapters.codelldb = { - type = "executable", - command = "codelldb" + { + "mfussenegger/nvim-dap", + config = function() + local dap = require('dap') + dap.adapters.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", "dt", ":DapToggleBreakpoint") + vim.keymap.set("n", "dc", ":DapContinue") + vim.keymap.set("n", "dx", ":DapTerminate") + vim.keymap.set("n", "do", ":DapStepOver") + 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", "dt", ":DapToggleBreakpoint") - vim.keymap.set("n", "dc", ":DapContinue") - vim.keymap.set("n", "dx", ":DapTerminate") - vim.keymap.set("n", "do", ":DapStepOver") - end + } } diff --git a/.config/sway/config b/.config/sway/config index 25a2b32..a853f2b 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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=".*\.AnnotationWindow"] floating enable for_window [class="Unity" title="Color"] floating enable +for_window [app_id="Bitwarden"] floating enable assign [class="Unity"] workspace number 3