This commit is contained in:
2025-08-16 14:18:03 -04:00
parent 808906ed55
commit 1a80cccb90

View File

@@ -180,3 +180,21 @@ vim.diagnostic.config({
virtual_text = true,
underline = true,
})
-- AP CSA JAVA UTILS
vim.api.nvim_create_user_command('AP', function()
local date = os.date("%Y-%m-%d")
local dir_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":t")
local lines = {
"// Owen Westness, " .. date .. ", " .. dir_name,
"public class ",
"{",
" public static void main(String[] args) {",
" // Your code here",
" }",
"}"
}
vim.api.nvim_buf_set_lines(0, 0, -1, false, lines)
vim.api.nvim_win_set_cursor(0, {2, 15})
vim.cmd('startinsert')
end, {})