feat: extra lsp stuff for java
This commit is contained in:
parent
a9372aa225
commit
2b19d6910a
2 changed files with 7 additions and 0 deletions
6
ftplugin/java.lua
Normal file
6
ftplugin/java.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
local nvim_jdtls = require("jdtls")
|
||||
nvim_jdtls.start_or_attach({
|
||||
cmd = { 'jdtls' },
|
||||
root_dir = vim.fs.dirname(vim.fs.find({'.gradlew', '.git', 'mvnw'}, {upward = true})[1]),
|
||||
})
|
||||
require('keybinds'):set_lsp_keys({})
|
|
@ -42,6 +42,7 @@ local init_fn = function(use)
|
|||
|
||||
use 'neovim/nvim-lspconfig' -- import LSP configurations
|
||||
use 'simrat39/rust-tools.nvim' -- extra LSP defaults for rust
|
||||
use 'mfussenegger/nvim-jdtls' -- extra LSP stuff for java
|
||||
|
||||
use 'L3MON4D3/LuaSnip' -- snippet engine
|
||||
|
||||
|
|
Loading…
Reference in a new issue