From a51e18c5d5c97882aff543eeb3898d8422c8d61f Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 1 Feb 2023 01:00:43 +0100 Subject: [PATCH] fix: disable lspconfig, set bufnr --- ftplugin/java.lua | 2 +- lua/plugins.lua | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ftplugin/java.lua b/ftplugin/java.lua index 0384a62..321d15e 100644 --- a/ftplugin/java.lua +++ b/ftplugin/java.lua @@ -3,4 +3,4 @@ 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({}) +require('keybinds'):set_lsp_keys({buffer = 0}) diff --git a/lua/plugins.lua b/lua/plugins.lua index 4310893..91a89ba 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -307,7 +307,6 @@ local init_fn = function(use) lspconfig.clangd.setup({capabilities=capabilities, on_attach=set_lsp_binds}) lspconfig.ltex.setup({capabilities=capabilities, on_attach=set_lsp_binds}) lspconfig.kotlin_language_server.setup({capabilities=capabilities, on_attach=set_lsp_binds}) - lspconfig.jdtls.setup({capabilities=capabilities, on_attach=set_lsp_binds}) lspconfig.sumneko_lua.setup({ capabilites=capabilities, on_attach=set_lsp_binds,