Configure Java LSP nvim-java, split from main plugins, and split disabled plugins to seperate folder.

This commit is contained in:
whitney 2024-11-20 16:11:25 -08:00
parent f8ffceb119
commit 76da8d6c5d
6 changed files with 30 additions and 31 deletions

View File

@ -35,6 +35,9 @@ ln -sfn /path/to/dotfiles/lazyvim/init.lua ~/.config/nvim/init.lua
```
5. Start nvim, and let all the packages install. Done!
## Reminders
If uninstalling, you need to manually get rid of stuff in `~/.local/share/nvim` before reinstalling everything.
## Plugins/Addons/Extras
### Mason (Language Servers)

View File

@ -1,3 +1,3 @@
# Disabled plugins folder.
Plugins are loaded by lazy.lua, by scanning the lua/plugins folder.
Move unused items to this folder.
Active plugins are found in the plugins folder, which is scanned by LazyVim.
Inactive plugins can be moved here to avoid accidental lazy loading.

View File

@ -2,7 +2,6 @@
return {
{
"yetone/avante.nvim",
enabled = false,
event = "VeryLazy",
lazy = false,
version = false, -- set this if you want to always pull the latest change

View File

@ -12,6 +12,7 @@ return {
name = "catppuccin",
priority = 1000,
},
-- Set the theme
{
"LazyVim/LazyVim",
opts = {

View File

@ -0,0 +1,23 @@
return {
"nvim-java/nvim-java",
config = false,
dependencies = {
{
"neovim/nvim-lspconfig",
opts = {
servers = {
jdtls = {
-- Your custom jdtls settings goes here
},
},
setup = {
jdtls = function()
require("java").setup({
-- Your custom nvim-java configuration goes here
})
end,
},
},
},
},
}

View File

@ -1,28 +1 @@
return {
-- add more treesitter parsers
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"bash",
"html",
"javascript",
"json",
"lua",
"markdown",
"markdown_inline",
"python",
"query",
"regex",
"tsx",
"typescript",
"vim",
"yaml",
},
},
},
{
"nvim-java/nvim-java",
opts = {},
},
}
return {}