Compare commits

..

No commits in common. "095d08c050d67a441765835e7ef56bc0b224d64a" and "dfe5665d96fb40de814804a4f88a53ab6fe9af19" have entirely different histories.

6 changed files with 8 additions and 54 deletions

View File

@ -1,28 +0,0 @@
vim.api.nvim_create_autocmd(
"FileType", {
desc = "Customizations for groovy files",
-- group = vim.api.nvim_create_augroup("groovy", { clear = true }),
pattern = { "groovy", "Jenkinsfile" },
callback = function()
local Terminal = require('toggleterm.terminal').Terminal
local groovysh = Terminal:new({
name = "groovysh",
cmd = "groovysh",
hidden = true,
close_on_exit = true,
})
function _groovysh_toggle()
groovysh:toggle()
end
vim.api.nvim_set_keymap("n", "<F5>", "<cmd>lua _groovysh_toggle()<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap("i", "<F5>", "<cmd>lua _groovysh_toggle()<CR>", { noremap = true, silent = true })
-- vim.api.nvim_set_keymap('n', '<F5>', ':terminal groovysh<CR>', { noremap = true, silent = true })
-- vim.opt_local.wrap = true
-- vim.opt_local.spell = true
end,
-- command = "setlocal wrap spell",
}
)

View File

@ -1,6 +0,0 @@
vim.api.nvim_create_autocmd("TermOpen", {
desc = "Auto switch to insert mode for terminal",
group = vim.api.nvim_create_augroup("term_auto_insert", { clear = true }),
pattern = "term://*",
command = "startinsert",
})

View File

@ -1,9 +0,0 @@
vim.api.nvim_create_autocmd("FileType", {
desc = "Enable wrap and spell for text like documents",
group = vim.api.nvim_create_augroup("auto_spell", { clear = true }),
pattern = { "gitcommit", "markdown", "text", "plaintex" },
callback = function()
vim.opt_local.wrap = true
vim.opt_local.spell = true
end,
})

View File

@ -1 +0,0 @@
return "astrodark"

View File

@ -1,4 +1,5 @@
return {
colorscheme = "astrodark",
-- This function is run last and is a good place to configuring
-- augroups/autocommands and custom filetypes also this just pure lua so
-- anything that doesn't fit in the normal config locations above can go here
@ -14,10 +15,13 @@ return {
-- })
-- Set up custom autocmds
require "user.autocmds.text"
require "user.autocmds.terminal"
require "user.autocmds.groovy"
vim.api.nvim_create_augroup("myterm", { clear = true })
vim.api.nvim_create_autocmd("TermOpen", {
desc = "Auto switch to insert mode for terminal",
group = "myterm",
pattern = "term://*",
command = "startinsert",
})
-- Set up custom filetypes
-- vim.filetype.add {
-- extension = {

View File

@ -17,10 +17,6 @@ return {
{ import = "astrocommunity.pack.docker" },
{ import = "astrocommunity.pack.helm" },
{ import = "astrocommunity.pack.terraform" },
{ import = "astrocommunity.pack.python" },
{ import = "astrocommunity.pack.java" },
{ import = "astrocommunity.pack.html-css" },
{ import = "astrocommunity.pack.angular" },
{ import = "astrocommunity.bars-and-lines.smartcolumn-nvim" },
{ import = "astrocommunity.bars-and-lines.vim-illuminate" },
@ -28,12 +24,10 @@ return {
{ import = "astrocommunity.programming-language-support.rest-nvim" },
{ import = "astrocommunity.completion.copilot-lua-cmp" },
{ import = "astrocommunity.diagnostics.trouble-nvim" },
{ import = "astrocommunity.project.project-nvim" },
{ import = "astrocommunity.colorscheme.vscode-nvim" },
{ import = "astrocommunity.colorscheme.github-nvim-theme" },
{ import = "astrocommunity.colorscheme.nord-nvim" },
{ import = "astrocommunity.colorscheme.nordic-nvim" },
{ import = "astrocommunity.colorscheme.iceberg-vim" },
}