diff --git a/README.md b/README.md new file mode 100644 index 0000000..b5b35b5 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ + +## Installation + +Required package +- ripgrep +- fd-find +- lldb-vscode (included with lldb package) +- lazygit +- rust-analyzer +- dartls (included with flutter) \ No newline at end of file diff --git a/configs/nvim/lua/mappings.lua b/configs/nvim/lua/mappings.lua index d7207e9..51b281a 100644 --- a/configs/nvim/lua/mappings.lua +++ b/configs/nvim/lua/mappings.lua @@ -44,8 +44,9 @@ local function init() -------------------- DAP ----------------------------------- map('n', '', 'lua require\'dap\'.toggle_breakpoint()', opts) - map('n', '', 'lua require\'dap\'.continue()', opts) - map('n', '', 'lua require\'dap\'.repl.open()', opts) + map('n', '', 'lua require\'dap\'.set_breakpoint(vim.fn.input(\'Breakpoint condition: \'))', opts) + map('n', '', 'lua require\'dap\'.continue()', opts) + map('n', '', 'lua require\'dap\'.repl.toggle()', opts) -------------------- FTerm --------------------------------- map('n', '', 'lua require("FTerm").toggle()') diff --git a/configs/nvim/lua/plugins/dap/lldb.lua b/configs/nvim/lua/plugins/dap/lldb.lua index 23ad04c..a3255a8 100644 --- a/configs/nvim/lua/plugins/dap/lldb.lua +++ b/configs/nvim/lua/plugins/dap/lldb.lua @@ -21,7 +21,10 @@ local function init() }, } dap.configurations.c = dap.configurations.cpp - dap.configurations.rust = dap.configurations.cpp + -- dap.configurations.rust = dap.configurations.cpp + -- dap.configurations.rust[1].program = function() + -- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/target/debug/', 'file') + -- end end return {