diff options
| author | Kyren223 <contact@kyren.codes> | 2026-06-23 12:37:08 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2026-06-23 12:37:08 +0300 |
| commit | 5ca9a46881c85793bf0fc32b2e82c3392e4eab9c (patch) | |
| tree | af670af828ac585eabba54c6a530960676d1987d | |
| parent | 97037edc434d17ae79cd2954d40ec3fe02d58258 (diff) | |
Disable annoying placeholders in java completions and add ignored
imports to avoid spam
| -rw-r--r-- | .config/nvim/lua/plugins/nvim-jdtls.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/nvim-jdtls.lua b/.config/nvim/lua/plugins/nvim-jdtls.lua index 7ed96a8..e09c578 100644 --- a/.config/nvim/lua/plugins/nvim-jdtls.lua +++ b/.config/nvim/lua/plugins/nvim-jdtls.lua @@ -53,6 +53,23 @@ return { errors = { incompleteClasspath = 'warning', }, + completion = { + -- Stops jdtls from injecting variable placeholders when autocompleting + guessMethodArguments = 'off', + + filteredTypes = { + 'edu.umd.cs.findbugs.*', + 'javax.annotation.*', + 'org.checkerframework.*', + 'org.eclipse.sisu.*', + -- 'org.jetbrains.annotations.*', + 'org.sonatype.inject.*', + 'java.awt.*', + 'com.sun.*', + 'sun.*', + 'jdk.*', + }, + }, }, }, } |
