diff --git a/config/default.nix b/config/default.nix index 3764ebc..722feec 100644 --- a/config/default.nix +++ b/config/default.nix @@ -10,10 +10,10 @@ ./modules/plugins/blink-cmp.nix ./modules/plugins/bufferline.nix ./modules/plugins/conform-nvim.nix + ./modules/plugins/dap.nix ./modules/plugins/fzf-lua.nix ./modules/plugins/gitsigns.nix ./modules/plugins/mini.nix - # ./modules/plugins/neotree.nix ./modules/plugins/oil.nix ./modules/plugins/snacks.nix ./modules/plugins/tmux-navigator.nix @@ -21,6 +21,7 @@ ./modules/plugins/undotree.nix ./modules/plugins/venv-selector.nix ./modules/plugins/which-key.nix + # ./modules/plugins/neotree.nix ]; performance.byteCompileLua.enable = true; diff --git a/config/modules/plugins/dap.nix b/config/modules/plugins/dap.nix new file mode 100644 index 0000000..840190d --- /dev/null +++ b/config/modules/plugins/dap.nix @@ -0,0 +1,33 @@ +{ + plugins.dap = { + enable = true; + luaConfig.post = '' + local dap = require('dap') + + dap.configurations.python = { + { + type = 'python', + request = 'attach', + name = 'Attach Remote (prompt for path)', + connect = { + host = '127.0.0.1', + port = 5678, + }, + pathMappings = function() + local remoteRoot = vim.fn.input('Remote root path: ', '/app') + return { + { + localRoot = vim.fn.getcwd(), + remoteRoot = remoteRoot, + }, + } + end, + }, + } + ''; + }; + plugins.dap-ui.enable = true; + plugins.dap-python.enable = true; + + keymaps = [ ]; +}