nvim-jdtls: fix export/import

This commit is contained in:
Marko Korhonen 2022-03-02 23:15:00 +02:00
parent 8af3cdd256
commit 0dd0d7c9ba
2 changed files with 6 additions and 2 deletions

View File

@ -17,4 +17,4 @@ require('jdtls').start_or_attach({
}
})
require('pluginconf.lsp').Lsp_map_keys('jdtls', nil)
require('pluginconf.lsp').lsp_map_keys('jdtls', nil)

View File

@ -1,6 +1,8 @@
local lsp_installer = require("nvim-lsp-installer")
Lsp_map_keys = function(server, bufnr)
local M = {}
M.lsp_map_keys = function(server, bufnr)
print("Lsp_map_keys()")
local function map_key(...)
-- Map to buffer if buffer number is supplied,
@ -82,3 +84,5 @@ lsp_installer.on_server_ready(function(server)
opts.capabilities = capabilities
server:setup(opts)
end)
return M