add java support to nvim
This commit is contained in:
parent
ed7c36b3d0
commit
11107f26af
3 changed files with 60 additions and 4 deletions
|
@ -124,11 +124,37 @@ require('lazy').setup({
|
|||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' }
|
||||
},
|
||||
{"shaunsingh/nord.nvim"}
|
||||
{"shaunsingh/nord.nvim"},
|
||||
{
|
||||
'nvim-java/nvim-java',
|
||||
dependencies = {
|
||||
'nvim-java/lua-async-await',
|
||||
'nvim-java/nvim-java-core',
|
||||
'nvim-java/nvim-java-test',
|
||||
'nvim-java/nvim-java-dap',
|
||||
'MunifTanjim/nui.nvim',
|
||||
'neovim/nvim-lspconfig',
|
||||
'mfussenegger/nvim-dap',
|
||||
'nvim-java/nvim-java-refactor',
|
||||
{
|
||||
'williamboman/mason.nvim',
|
||||
opts = {
|
||||
registries = {
|
||||
'github:nvim-java/mason-registry',
|
||||
'github:mason-org/mason-registry',
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
})
|
||||
keymap("n", "<c-P>", require('fzf-lua').files, {noremap=true})
|
||||
require('lualine').setup()
|
||||
|
||||
-- java shenanigans
|
||||
|
||||
|
||||
-- theme shenanigans
|
||||
vim.cmd("colorscheme nord")
|
||||
|
||||
|
@ -238,3 +264,20 @@ require('lspconfig').rust_analyzer.setup({
|
|||
|
||||
vim.keymap.set({ "n" }, "<C-S-A-Up>" ,"<CMD>LineDuplicate -1<CR>")
|
||||
vim.keymap.set({ "n" }, "<C-S-A-Down>" ,"<CMD>LineDuplicate +1<CR>")
|
||||
|
||||
-- java shenanigans
|
||||
require('lspconfig').jdtls.setup({
|
||||
settings = {
|
||||
java = {
|
||||
configuration = {
|
||||
runtimes = {
|
||||
{
|
||||
name = "JavaSE-21",
|
||||
path = "/opt/openjdk-bin-21.0.3_p9",
|
||||
default = true,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -6,14 +6,23 @@
|
|||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"duplicate.nvim": { "branch": "main", "commit": "ab057af7872c44e6fbd48df9b03983c8e67c50a7" },
|
||||
"fzf-lua": { "branch": "main", "commit": "eb63a4bbfd203942737f76d4cf5424f6fb016a9d" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "b02c9eae6a250f98908c146d1dc1a891f5019f0a" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "fafe1f7c640aed75e70a10e6649612cd96f39149" },
|
||||
"lsp-zero.nvim": { "branch": "v3.x", "commit": "16de3b18c5f7b6230d89b8e64ce9a4801b6f8d08" },
|
||||
"lua-async-await": { "branch": "main", "commit": "652d94df34e97abe2d4a689edbc4270e7ead1a98" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "6a40b530539d2209f7dc0492f3681c8c126647ad" },
|
||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||
"moonfly": { "branch": "master", "commit": "31f65a1bbddd7de9a639d8d0e32b8066c0de1da1" },
|
||||
"nord.nvim": { "branch": "master", "commit": "80c1e5321505aeb22b7a9f23eb82f1e193c12470" },
|
||||
"nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "a110e12d0b58eefcf5b771f533fc2cf3050680ac" },
|
||||
"nvim-dap": { "branch": "master", "commit": "bc03b83c94d0375145ff5ac6a6dcf28c1241e06f" },
|
||||
"nvim-java": { "branch": "main", "commit": "5498e76364def449533199ea5bdbdde9a7eeb83c" },
|
||||
"nvim-java-core": { "branch": "main", "commit": "5def9bd1a0ddd624fbc2c2028fd7a493e4d75021" },
|
||||
"nvim-java-dap": { "branch": "main", "commit": "55c90c5d2414f6e66f843f38e111bee284d71e61" },
|
||||
"nvim-java-refactor": { "branch": "main", "commit": "1ad49115898c1a03af23ec5058c1df6268b712a9" },
|
||||
"nvim-java-test": { "branch": "main", "commit": "7f0f40e9c5b7eab5096d8bec6ac04251c6e81468" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "92166b89ab4b3d60f24e58170cac53b7141fd032" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "b4b302d6ae229f67df7a87ef69fa79473fe788a9" },
|
||||
"vim-oscyank": { "branch": "main", "commit": "c37c9d98e8a0aed749624fa14a7ece7913cf34de" }
|
||||
}
|
||||
}
|
6
.zshrc
6
.zshrc
|
@ -21,9 +21,13 @@ export NODE_PATH=/usr/lib/node_modules
|
|||
export PATH="/home/hex/.flyscrape:/home/hex/.cargo/bin:$PATH:$HOME/go/bin"
|
||||
|
||||
# Created by `pipx` on 2024-07-17 11:05:58
|
||||
export PATH="$PATH:/home/hex/.local/bin"
|
||||
export PATH="$PATH:/home/hex/.local/bin:/home/hex/jdtls/bin"
|
||||
source ~/powerlevel10k/powerlevel10k.zsh-theme
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
HISTFILE=~/.histfile
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
setopt appendhistory
|
||||
|
|
Loading…
Reference in a new issue