LazyVim.LazyVim/lua/lazyvim/plugins/extras
iniw aad0edbf74
fix(java): only setup debug adapter config if mason is installed (#5013)
## Description
This prevents the following error when opening java files when mason is
disabled (e.g: NixOS)

```
Failed to run `config` for nvim-jdtls

...im/lazy/LazyVim/lua/lazyvim/plugins/extras/lang/java.lua:149: module 'mason-registry' not found:
	no field package.preload['mason-registry']
cache_loader: module mason-registry not found
cache_loader_lib: module mason-registry not found
	no file '/nix/store/j3563y13yim4m7qdwk0m8h22648wbifj-luajit-2.1.1713773202-env/share/lua/5.1/mason-registry.lua'
	no file '/nix/store/j3563y13yim4m7qdwk0m8h22648wbifj-luajit-2.1.1713773202-env/share/lua/5.1/mason-registry/init.lua'
	no file '/nix/store/j3563y13yim4m7qdwk0m8h22648wbifj-luajit-2.1.1713773202-env/lib/lua/5.1/mason-registry.so'

# stacktrace:
  - /LazyVim/lua/lazyvim/plugins/extras/lang/java.lua:149 _in_ **config**
  - /nix/store/xgn4baapvvk35ssi47bsmmyawl83917g-neovim-unwrapped-0.10.2/share/nvim/runtime/filetype.lua:36
  - /nix/store/xgn4baapvvk35ssi47bsmmyawl83917g-neovim-unwrapped-0.10.2/share/nvim/runtime/filetype.lua:35
```

## Checklist

- [X] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-12-12 18:58:39 +01:00
..
ai fix: fqn for nvim-cmp 2024-12-12 14:45:47 +01:00
coding fix: fqn for nvim-cmp 2024-12-12 14:45:47 +01:00
dap feat(snacks): added profiler keymaps 2024-12-12 13:47:29 +01:00
editor fix(mini.diff): toggle 2024-12-07 20:52:13 +01:00
formatting feat(extras): add biome formatter (#4448) 2024-11-16 07:34:21 +01:00
lang fix(java): only setup debug adapter config if mason is installed (#5013) 2024-12-12 18:58:39 +01:00
linting feat(eslint): add option to disable eslint auto format (#4225) 2024-11-08 14:05:00 +01:00
lsp feat: moved neoconf.nvim to extras 2024-06-02 09:05:16 +02:00
test fix(neotest): disambiguous key map descriptions (#4374) 2024-11-08 13:37:09 +01:00
ui fix(mini.indentscope): disable snacks and indent-blankline scope 2024-12-12 16:44:28 +01:00
util fix(dot): kitty ft with bash treesitter highlights 2024-12-07 20:52:48 +01:00
vscode.lua feat(vscode): add vscode-specific keymaps and sync undo/redo with vscode (#4983) 2024-12-10 12:13:01 +01:00