Public Access
added nvim-dap
This commit is contained in:
@@ -35,6 +35,7 @@ vim.pack.add({
|
|||||||
{ src = "https://github.com/kosayoda/nvim-lightbulb" },
|
{ src = "https://github.com/kosayoda/nvim-lightbulb" },
|
||||||
{ src = "https://codeberg.org/mfussenegger/nvim-jdtls.git" },
|
{ src = "https://codeberg.org/mfussenegger/nvim-jdtls.git" },
|
||||||
{ src = "https://github.com/m4xshen/autoclose.nvim" },
|
{ src = "https://github.com/m4xshen/autoclose.nvim" },
|
||||||
|
{ src = "https://codeberg.org/mfussenegger/nvim-dap.git" },
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd("colorscheme gruvbox")
|
vim.cmd("colorscheme gruvbox")
|
||||||
@@ -88,7 +89,7 @@ vim.api.nvim_create_autocmd('FileType', {
|
|||||||
callback = function(args)
|
callback = function(args)
|
||||||
local project_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":p:h:t")
|
local project_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":p:h:t")
|
||||||
local workspace_dir = vim.fn.stdpath("data") ..
|
local workspace_dir = vim.fn.stdpath("data") ..
|
||||||
package.config:sub(1, 1) .. "jdtls-workspace" .. package.config:sub(1, 1) .. project_name
|
package.config:sub(1, 1) .. "jdtls-workspace" .. package.config:sub(1, 1) .. project_name
|
||||||
local os_name = vim.loop.os_uname().sysname
|
local os_name = vim.loop.os_uname().sysname
|
||||||
local config = {
|
local config = {
|
||||||
-- The command that starts the language server
|
-- The command that starts the language server
|
||||||
@@ -164,7 +165,7 @@ vim.api.nvim_create_autocmd('FileType', {
|
|||||||
--
|
--
|
||||||
-- If you don't plan on using the debugger or other eclipse.jdt.ls plugins you can remove this
|
-- If you don't plan on using the debugger or other eclipse.jdt.ls plugins you can remove this
|
||||||
init_options = {
|
init_options = {
|
||||||
bundles = {},
|
bundles = { vim.fn.glob("/home/jannikdonker/.local/share/nvim/mason/share/java-debug-adapter/com.microsoft.java.debug.plugin.jar", 1) },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
-- This starts a new client & server,
|
-- This starts a new client & server,
|
||||||
|
|||||||
Reference in New Issue
Block a user