feat: add jdtls
This commit is contained in:
parent
76b5001e19
commit
01baf4e9fa
8 changed files with 256 additions and 35 deletions
|
|
@ -9,6 +9,7 @@ return {
|
|||
"mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"lvimuser/lsp-inlayhints.nvim",
|
||||
"mfussenegger/nvim-jdtls",
|
||||
{
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
cond = function()
|
||||
|
|
@ -75,7 +76,7 @@ return {
|
|||
},
|
||||
},
|
||||
-- ltex = {},
|
||||
jdtls = {},
|
||||
ltex = {},
|
||||
gopls = {},
|
||||
sqls = {},
|
||||
taplo = {},
|
||||
|
|
@ -95,20 +96,12 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
-- you can do any additional lsp server setup here
|
||||
-- return true if you don't want this server to be setup with lspconfig
|
||||
---@type table<string, fun(server:string, opts:_.lspconfig.options):boolean?>
|
||||
setup = {
|
||||
-- example to setup with typescript.nvim
|
||||
-- tsserver = function(_, opts)
|
||||
-- require("typescript").setup({ server = opts })
|
||||
-- return true
|
||||
-- end,
|
||||
-- Specify * to use this function as a fallback for any server
|
||||
-- ["*"] = function(server, opts) end,
|
||||
jdtls = function()
|
||||
return true
|
||||
end,
|
||||
},
|
||||
},
|
||||
---@param opts PluginLspOpts
|
||||
config = function(plugin, opts)
|
||||
-- setup autoformat
|
||||
require("lazyvim.plugins.lsp.format").autoformat = opts.autoformat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue