2023-11-02 13:39:18 -04:00
|
|
|
require("pbaxter.set")
|
|
|
|
require("pbaxter.remap")
|
2023-11-14 11:52:51 -05:00
|
|
|
|
|
|
|
--require("pbaxter.packer")
|
|
|
|
require("pbaxter.lazy")
|
2023-11-02 13:39:18 -04:00
|
|
|
|
2023-11-16 10:27:01 -05:00
|
|
|
vim.filetype.add({
|
|
|
|
extension = {
|
|
|
|
templ = "templ",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2023-11-02 13:39:18 -04:00
|
|
|
local augroup = vim.api.nvim_create_augroup
|
|
|
|
local ThePrimeagenGroup = augroup('ThePrimeagen', {})
|
|
|
|
|
|
|
|
local autocmd = vim.api.nvim_create_autocmd
|
|
|
|
local yank_group = augroup('HighlightYank', {})
|
|
|
|
|
|
|
|
function R(name)
|
|
|
|
require("plenary.reload").reload_module(name)
|
|
|
|
end
|
|
|
|
|
|
|
|
autocmd('TextYankPost', {
|
|
|
|
group = yank_group,
|
|
|
|
pattern = '*',
|
|
|
|
callback = function()
|
|
|
|
vim.highlight.on_yank({
|
|
|
|
higroup = 'IncSearch',
|
|
|
|
timeout = 40,
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
autocmd({"BufWritePre"}, {
|
|
|
|
group = ThePrimeagenGroup,
|
|
|
|
pattern = "*",
|
|
|
|
command = [[%s/\s\+$//e]],
|
|
|
|
})
|
|
|
|
|
|
|
|
vim.g.netrw_browse_split = 0
|
|
|
|
vim.g.netrw_banner = 0
|
|
|
|
vim.g.netrw_winsize = 25
|
|
|
|
|
2024-02-22 14:07:11 -05:00
|
|
|
vim.fn.sign_define(
|
|
|
|
"LspDiagnosticsSignError",
|
|
|
|
{ texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError" }
|
|
|
|
)
|
|
|
|
vim.fn.sign_define(
|
|
|
|
"LspDiagnosticsSignWarning",
|
|
|
|
{ texthl = "LspDiagnosticsSignWarning", text = "", numhl = "LspDiagnosticsSignWarning" }
|
|
|
|
)
|
|
|
|
vim.fn.sign_define(
|
|
|
|
"LspDiagnosticsSignHint",
|
|
|
|
{ texthl = "LspDiagnosticsSignHint", text = "", numhl = "LspDiagnosticsSignHint" }
|
|
|
|
)
|
|
|
|
vim.fn.sign_define(
|
|
|
|
"LspDiagnosticsSignInformation",
|
|
|
|
{ texthl = "LspDiagnosticsSignInformation", text = "", numhl = "LspDiagnosticsSignInformation" }
|
|
|
|
)
|