Moved the after directory to lua/barink
This commit is contained in:
36
lua/barink/after/ftplugin/go.lua
Normal file
36
lua/barink/after/ftplugin/go.lua
Normal file
@ -0,0 +1,36 @@
|
||||
local dap = require("dap")
|
||||
print("You opened a Golang file")
|
||||
|
||||
dap.adapters.delve = {
|
||||
type = 'server',
|
||||
port = '${port}',
|
||||
executable = {
|
||||
command = 'dlv',
|
||||
args = {'dap', '-l', '127.0.0.1:${port}'},
|
||||
}
|
||||
}
|
||||
|
||||
-- https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_dap.md
|
||||
dap.configurations.go = {
|
||||
{
|
||||
type = "delve",
|
||||
name = "Debug",
|
||||
request = "launch",
|
||||
program = "${file}"
|
||||
},
|
||||
{
|
||||
type = "delve",
|
||||
name = "Debug test", -- configuration for debugging test files
|
||||
request = "launch",
|
||||
mode = "test",
|
||||
program = "${file}"
|
||||
},
|
||||
-- works with go.mod packages and sub packages
|
||||
{
|
||||
type = "delve",
|
||||
name = "Debug test (go.mod)",
|
||||
request = "launch",
|
||||
mode = "test",
|
||||
program = "./${relativeFileDirname}"
|
||||
}
|
||||
}
|
24
lua/barink/after/ftplugin/java.lua
Normal file
24
lua/barink/after/ftplugin/java.lua
Normal file
@ -0,0 +1,24 @@
|
||||
--[[
|
||||
-- Only setup for windows
|
||||
-- Don't know if all this is actually necessary
|
||||
-- TODO: FIX: Clean this mess up ~ 03/28/2024
|
||||
--]]
|
||||
if vim.loop.os_uname().sysname == 'Windows_NT' then
|
||||
Cmd = 'c:/Users/nigel/Appdata/Local/nvim-data/mason/bin/jdtls.cmd'
|
||||
JavaDebug = vim.fn.glob("C:/Users/nigel/AppData/Local/nvim-data/java-debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-0.52.0.jar", 1)
|
||||
else
|
||||
Cmd = ''
|
||||
JavaDebug = nil
|
||||
end
|
||||
local config = {
|
||||
cmd = {Cmd},
|
||||
root_dir = vim.fs.dirname(vim.fs.find({'gradlew', '.git', 'mvnw'}, { upward = true })[1]),
|
||||
init_options = {
|
||||
bundles = {
|
||||
JavaDebug
|
||||
}
|
||||
}
|
||||
}
|
||||
require('jdtls').start_or_attach(config)
|
||||
require('jdtls').setup_dap({hotcodreplace='auto'})
|
||||
require('jdtls.dap').setup_dap_main_class_configs()
|
1
lua/barink/after/ftplugin/lua.lua
Normal file
1
lua/barink/after/ftplugin/lua.lua
Normal file
@ -0,0 +1 @@
|
||||
print("You opened a LUA file..")
|
10
lua/barink/after/plugin/colors.lua
Normal file
10
lua/barink/after/plugin/colors.lua
Normal file
@ -0,0 +1,10 @@
|
||||
function ColorMyPencils(color)
|
||||
color = color or "tokyonight"
|
||||
vim.cmd.colorscheme(color)
|
||||
|
||||
-- make transparent BG
|
||||
vim.api.nvim_set_hl(0, "Normal", {bg = "none"})
|
||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none"})
|
||||
end
|
||||
|
||||
ColorMyPencils()
|
Reference in New Issue
Block a user