summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftplugin/java.lua17
-rw-r--r--ftplugin/python.lua2
-rw-r--r--lua/plugins.lua3
3 files changed, 18 insertions, 4 deletions
diff --git a/ftplugin/java.lua b/ftplugin/java.lua
index bba968b9..489deb3b 100644
--- a/ftplugin/java.lua
+++ b/ftplugin/java.lua
@@ -18,11 +18,24 @@ if O.lang.java.java_tools.active then
cmd = { JAVA_LS_EXECUTABLE, WORKSPACE_PATH .. vim.fn.fnamemodify(vim.fn.getcwd(), ":p:h:t") },
}
+ vim.api.nvim_set_keymap(
+ "n",
+ "<leader>la",
+ ":lua require('jdtls').code_action()<CR>",
+ { noremap = true, silent = true }
+ )
+ vim.api.nvim_set_keymap(
+ "n",
+ "<leader>lR",
+ ":lua require('jdtls').code_action(false, 'refactor')<CR>",
+ { noremap = true, silent = true }
+ )
+
vim.cmd "command! -buffer JdtCompile lua require('jdtls').compile()"
vim.cmd "command! -buffer JdtUpdateConfig lua require('jdtls').update_project_config()"
- vim.cmd "command! -buffer JdtJol lua require('jdtls').jol()"
+ -- vim.cmd "command! -buffer JdtJol lua require('jdtls').jol()"
vim.cmd "command! -buffer JdtBytecode lua require('jdtls').javap()"
- vim.cmd "command! -buffer JdtJshell lua require('jdtls').jshell()"
+ -- vim.cmd "command! -buffer JdtJshell lua require('jdtls').jshell()"
else
local util = require "lspconfig/util"
diff --git a/ftplugin/python.lua b/ftplugin/python.lua
index 0cf7c1a7..297c5f33 100644
--- a/ftplugin/python.lua
+++ b/ftplugin/python.lua
@@ -63,7 +63,7 @@ if not require("lv-utils").check_lsp_client_active "pyright" then
}
end
-if O.plugin.debug.active and O.plugin.dap_install.active then
+if O.plugin.dap.active then
local dap_install = require "dap-install"
dap_install.config("python_dbg", {})
end
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 1fb28095..3b776b7c 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -124,7 +124,8 @@ return require("packer").startup(function(use)
config = function()
require "lv-galaxyline"
end,
- -- event = "VimEnter",
+ event = "BufWinEnter",
+ disable = not O.plugin.galaxyline.active,
}
use {