LazyVim.LazyVim/lua/lazyvim/plugins/extras/lang
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
..
angular.lua feat(lang.angular): configure prettier as formatter for angular templates (#4345) 2024-11-08 13:45:53 +01:00
ansible.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
astro.lua fix(vue): ensure css treesitter installed (#4308) 2024-09-18 08:22:05 +02:00
clangd.lua fix(clangd): avoid nil-indexing the completion sorting comparators (#5011) 2024-12-12 16:51:34 +01:00
clojure.lua fix(clojure): removed rainbow delimiters and fixed some plugin setups. Closes #3530 2024-06-07 23:10:40 +02:00
cmake.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
docker.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
elixir.lua feat(elixir): add support for livebook files (*.livemd) (#4184) 2024-11-08 14:10:11 +01:00
elm.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
erlang.lua feat(erlang): add Erlang language (#3911) 2024-07-04 20:47:33 +02:00
git.lua fix: fqn for nvim-cmp 2024-12-12 14:45:47 +01:00
gleam.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
go.lua feat(icons): provide language specific icons in extras (#3931) 2024-07-07 19:28:51 +02:00
haskell.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
helm.lua fix(helm): missing dependency (#3546) 2024-06-09 07:33:59 +02:00
java.lua fix(java): only setup debug adapter config if mason is installed (#5013) 2024-12-12 18:58:39 +01:00
json.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
kotlin.lua revert: "fix(dap): set host to 127.0.0.1 instead of localhost to prevent issues with ipv6. Fixes #3577" 2024-06-11 19:14:27 +02:00
lean.lua fix(extras): rename lspconfig.server_configurations to lspconfig.configs (#4518) 2024-10-02 09:24:02 +02:00
markdown.lua feat(core)!: move a bunch of LazyVim features to snacks.nvim (#4706) 2024-11-07 15:54:47 +01:00
nix.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
nushell.lua feat(extras.nushell): update to upstream treesitter (#4715) 2024-11-07 16:11:59 +01:00
ocaml.lua fix(ocaml): get_language_id (#4327) 2024-09-18 08:20:43 +02:00
omnisharp.lua fix(omnisharp): use Go To Definition with fzf.lua (#4260) 2024-09-18 08:22:58 +02:00
php.lua fix(php): php_cs_fixer is the correct name (#3991) 2024-07-11 17:40:17 +02:00
prisma.lua feat(extra): add prisma support and config (#3684) 2024-06-18 19:03:19 +02:00
python.lua refactor(cmp): add optional where necessary (#4557) 2024-10-23 11:44:27 +02:00
r.lua fix(lang/r): make keymaps in which-key menu available in visual mode (#4565) 2024-11-08 13:26:31 +01:00
rego.lua feat(extras): rego language support (#4297) 2024-11-08 13:44:59 +01:00
ruby.lua fix(lang/ruby): do not enable Rubocop as LSP if Solargraph is used (#4566) 2024-11-08 13:56:44 +01:00
rust.lua fix(rust): only use mason.nvim if it is present (#4963) 2024-12-06 16:35:27 +01:00
scala.lua feat(scala): add key for worksheet hover (#3853) 2024-11-08 14:09:17 +01:00
sql.lua fix(blink): config breaking changes. Fixes #4990 2024-12-11 10:57:09 +01:00
svelte.lua feat(svelte): with prettier & svelte extra, prettier will be enabled when prettier-plugin-svelte is available 2024-06-07 23:02:47 +02:00
tailwind.lua refactor(cmp): add optional where necessary (#4557) 2024-10-23 11:44:27 +02:00
terraform.lua feat(terraform): add formatter for packer files (#4591) 2024-11-08 21:14:22 +01:00
tex.lua fix(tex): specify filetype for <localleader>l (#4905) 2024-12-05 09:11:11 +01:00
thrift.lua refactor: use lazy's new opts_extend functionality for treesitter and mason 2024-06-07 09:03:59 +02:00
toml.lua fix: cleanup unnecessary treesitter langs and mason lsp servers 2024-06-05 18:07:01 +02:00
typescript.lua feat(lang): add maxInlayHintLength for vtsls to resolve inlay hint to… (#4902) 2024-11-28 08:49:40 +01:00
vue.lua fix(vue): ensure css treesitter installed (#4308) 2024-09-18 08:22:05 +02:00
yaml.lua refactor: LazyVim.lsp.on_attach 2024-06-08 08:11:30 +02:00
zig.lua feat(extras): lang/zig (#4437) 2024-11-07 16:40:06 +01:00