Commit graph

36 commits

Author SHA1 Message Date
akioweh
fa94c73362
fix printable characters being mapped in select mode
most of the "visual mode" mappings use "v" instead of "x", affecting
select mode, which should not have printable characters remapped. (this
is felt when e.g. using snippets)
2025-07-29 00:16:33 +04:00
Folke Lemaitre
a8332c6d50 feat(snacks): added profiler keymaps 2024-12-12 13:47:29 +01:00
Folke Lemaitre
776994a207
fix(dap): use dap's splitstr when running with args. Closes #4387 2024-11-08 13:31:19 +01:00
Lorenzo Bettini
4e1fd66078
docs(dap): document continue to be used also for run (#4603)
The `dap.continue` is meant to be used also to start the program if no
debugging session is active.

The documentation states:

> `continue()` is the main entry-point for users to start debugging an
application.

With this change, it should be clearer to the user that `continue` is
the way to start a program. Otherwise, one could think to use `Run with
args` (which is misleading). At least for me, it was, until I read the
dap documentation.

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-08 13:25:56 +01:00
Folke Lemaitre
0403e80a8e
fix(java): jdtls run with args (#4689)
## Description

Makes run with args work for jdtls

## Related Issue(s)
- Closes #4686
- Closes #4673
2024-11-03 12:48:11 +01:00
nowaylifer
2f6c1f6083
fix(dap): remove explicit load_launchjs call (#4634)
## Description

The explicit call to `load_launchjs` is unnecessary, since after
https://github.com/mfussenegger/nvim-dap/pull/1237 `.vscode/launch.json`
files are loaded automatically.

## Related Issue(s)
Fixes #4432


## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-10-23 16:03:06 +02:00
Miguel Palau
caf227dd08
fix(dap): extend dap.configurations from .vscode/launch.json (#4106)
## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

This PR allows the nvim-dap module to read from vscode's launch.json and
add those configurations to the ones in nvim-dap.

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

Before:

<img width="1137" alt="image"
src="https://github.com/user-attachments/assets/22978298-dbe1-44f5-92ac-c981197b22ae">



After:

<img width="1004" alt="image"
src="https://github.com/user-attachments/assets/3521b75e-6e32-40f4-9172-f52f39077441">


## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.

---------

Co-authored-by: Micah Halter <micah@mehalter.com>
2024-07-23 17:05:18 +02:00
Iordanis Petkakis
b55c7734df
fix(dap): only load mason-nvim-dap when not disabled (#3784)
## What is this PR for?
Only `require("mason-nvim-dap")` when it's not disabled
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Does this PR fix an existing issue?
Fixes #3783
<!--
  If this PR fixes any issues, please link to the issue here.
  Fixes #<issue_number>
-->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-06-23 20:04:51 +02:00
Folke Lemaitre
2b703ac125
fix(dap): make sure mason-nvim-dap loads after nvim-dap 2024-06-15 10:22:41 +02:00
Folke Lemaitre
e0e1ab01af
fix(dap): make sure mason-dap is loaded after initializing dap. See #3663 2024-06-15 10:19:48 +02:00
Micah Halter
1c46f54432
fix(typescript): clean up configuration of the vscode dap extension (#3556)
`mason-nvim-dap.nvim` adds it's own adapter filetype mappings to the
vscode extension in `nvim-dap` (as of
https://github.com/jay-babu/mason-nvim-dap.nvim/pull/129)

This also moves the type mappings for the `pwa-node` and `node` adapters
to where they are defined in the typescript pack.

Now that the default internal type mappings are configured we can rely
on the automatic loading of the `.vscode/launch.json` that `nvim-dap`
does
2024-06-09 22:48:51 +02:00
zeekrs
51854046db
fix(extras): +prefix in which-key panel for visual mode (#3537) 2024-06-08 10:04:10 +02:00
Iordanis Petkakis
86ba1bc62d
fix(mason-nvim-dap): correctly configure to auto-install debug adapters (#3493)
Tested with `php` and `kotlin` Extras. 

`kotlin` Extra doesn't have the debug adapter in Mason
`ensure_installed` and doesn't install automatically on its own.

`php` Extra has the debug adapter defined in Mason `ensure_installed`
and does correctly install automatically. However, this should not be
needed due to `mason-nvim-dap`. If you remove [these
lines](ed93ce9c15/lua/lazyvim/plugins/extras/lang/php.lua (L26-L33)),
then the debug adapter doesn't automatically install, but it should.

With the change introduced in this PR, both Extras automatically install
the debug adapters. `kotlin` Extra doesn't need anything else and in
`php` Extra the lines I mentioned previously can be removed or not. The
point is not to remove previously Mason dependencies with debug
adapters, but to correctly configure `mason-nvim-dap`, so in future
Extras you don't have to define the debug adapter inside a Mason
dependency.
2024-06-06 14:35:59 +02:00
Folke Lemaitre
8010f50aa5
fix(which-key): use new which-key support for native group keymaps (nop) 2024-06-06 10:46:56 +02:00
Folke Lemaitre
c14d21ce75
feat: moved neoconf.nvim to extras 2024-06-02 09:05:16 +02:00
Folke Lemaitre
ef3bd3bd02
feat(extras): tags some extras as recommended 2024-05-18 14:12:26 +02:00
Folke Lemaitre
8dae76c1fd
fix(dap): use jsonc support from plenary. Same as the code from neoconf. Fixes #3174 2024-05-16 16:44:01 +02:00
Avinash Thakur
183d6eea60
fix(dap): add debugger to filetypes mapping for launch.json (#3165) 2024-05-16 11:57:56 +02:00
MoetaYuko
543dead590
fix(dap): load vscode launch files with jsonc parser (#1839)
This seems to be the proper fix for #1503. jsonc ensures compatibility
with native vscode.

Ref: https://github.com/mfussenegger/nvim-dap/issues/964
2024-05-15 15:39:28 +02:00
Kevin Traver
eb9f9a8862
fix(keymaps): update all keymap descriptions to be Title Case (#2844) 2024-03-27 08:56:44 +01:00
Stefan Krüger
393a9c7c7a
fix(neotest): add required nvim-nio to test and dap extra (neotest and nvim-dap-ui respectively) (#2763)
* Adding required nvim-nio to neotest in test-core

neotest now requires nvim-neotest/nvim-nio to be
installed as per BREAKING CHANGE: https://github.com/nvim-neotest/neotest/pull/337

* Adding nvim-nio as dependency

nvim-dap-ui now requires  nvim-neotest/nvim-nio as a dependency as of recent changes
2024-03-19 22:02:22 +01:00
Folke Lemaitre
72f3cc684b fix(dap): copy config before overriding args 2023-10-12 11:48:02 +02:00
Folke Lemaitre
ba4b8dfecb refactor(nlua): cleanup 2023-10-12 11:48:02 +02:00
Folke Lemaitre
85215f396b fix(nlua): make nlua dap work with regular continue. Fixes #1666 2023-10-12 11:48:02 +02:00
Folke Lemaitre
b1c9fd15bd
feat(dap): added run with args leader-ca. Fixes #1629 2023-10-10 11:06:00 +02:00
Folke Lemaitre
9372d78e7e
feat(nlua): make lua dap keybindings buffer-local 2023-10-07 21:08:18 +02:00
Folke Lemaitre
36d6a7fe4f
fix(dap): revert loading vscode launch files. Add it to your own config when needed. Fixes #1503 2023-09-27 13:56:53 +02:00
Folke Lemaitre
f1af34e885
fix(dap): move launchjs code from java to dap 2023-09-26 13:38:48 +02:00
Folke Lemaitre
183fd89d76
fix: make some extra deps optional 2023-05-22 20:57:26 +02:00
jyuan0
b4099a6477
fix(dap): fix the mason-nvim-dap setting name (#781) 2023-05-19 21:34:19 +02:00
Albert Gu
3a718c5c85
feat(dap): Change DAP REPL binding from open to toggle (#663) 2023-04-22 23:06:55 +02:00
Phúc H. Lê Khắc
38ad79d548
feat(dap): add more keybindings and lualine component (#612)
* feat(dap): add more keybindings and lualine component

* refactor(dap): changed some keymaps and sorted them

* refactor(lualine): added extra space for dap icon

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2023-04-18 20:23:39 +02:00
Jonas Holst Damtoft
cfaf3b054e
feat(dap): add step out, rebind step over (#605) 2023-04-17 17:53:39 +02:00
Folke Lemaitre
feaeab9fca
fix(dap): added DapInstall and DapUninstall to cmds 2023-04-16 21:56:38 +02:00
Folke Lemaitre
f562d1d197
feat(dap): added extra for dap nlua 2023-04-16 21:35:52 +02:00
Folke Lemaitre
bc14e02a1f
feat: added extra for dap 2023-04-16 21:35:38 +02:00