diff --git a/home/.config/nvim/ftplugin/java.lua b/home/.config/nvim/ftplugin/java.lua index 57bbb39..227b83d 100644 --- a/home/.config/nvim/ftplugin/java.lua +++ b/home/.config/nvim/ftplugin/java.lua @@ -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) diff --git a/home/.config/nvim/lua/pluginconf/lsp.lua b/home/.config/nvim/lua/pluginconf/lsp.lua index 82192fd..6e6da90 100644 --- a/home/.config/nvim/lua/pluginconf/lsp.lua +++ b/home/.config/nvim/lua/pluginconf/lsp.lua @@ -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