ci: format

This commit is contained in:
Barrett Ruth 2026-03-05 13:32:28 -05:00
parent e30ca4eb16
commit 9db185f4d4
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
13 changed files with 2252 additions and 52 deletions

View file

@ -59,6 +59,7 @@ return {
'snippet_forward',
},
},
cmdline = { enabled = false },
completion = {
accept = {
auto_brackets = { enabled = false },

View file

@ -292,15 +292,22 @@ return {
},
{
'barrettruth/preview.nvim',
ft = { 'typst', 'tex', 'markdown' },
after = function()
require('preview').setup({
ft = { 'typst', 'tex', 'markdown', 'plantuml' },
before = function()
vim.filetype.add({
extension = { puml = 'plantuml', pu = 'plantuml' },
})
vim.g.preview = {
github = true,
typst = { open = { 'sioyek', '--new-instance' } },
plantuml = true,
mermaid = true,
latex = {
open = { 'sioyek', '--new-instance' },
output = function(ctx)
return 'build/' .. vim.fn.fnamemodify(ctx.file, ':t:r') .. '.pdf'
return ('build/%s.pdf'):format(
vim.fn.fnamemodify(ctx.file, ':t:r')
)
end,
args = function(ctx)
return {
@ -313,8 +320,8 @@ return {
}
end,
},
})
}
end,
keys = { { '<leader>p', '<cmd>Preview watch<cr>' } },
keys = { { '<leader>p', '<cmd>Preview toggle<cr>' } },
},
}

View file

@ -88,18 +88,6 @@ return {
fzf.setup(opts)
vim.api.nvim_create_autocmd('FileType', {
pattern = 'fzf',
callback = function()
vim.opt_local.number = false
vim.opt_local.relativenumber = false
end,
group = vim.api.nvim_create_augroup(
'AFzfHighlights',
{ clear = true }
),
})
local ok, fzf_reload = pcall(require, 'config.fzf_reload')
if ok then
fzf_reload.setup(opts)

View file

@ -230,7 +230,6 @@ return {
vim.g.diffs = {
debug = '/tmp/diffs.log',
fugitive = true,
neogit = false,
extra_filetypes = { 'diff' },
hide_prefix = false,
highlights = {

View file

@ -20,6 +20,10 @@ return {
},
{
'echasnovski/mini.ai',
keys = {
{ 'a', mode = { 'x', 'o' } },
{ 'i', mode = { 'x', 'o' } },
},
after = function()
require('mini.ai').setup({
custom_textobjects = {
@ -49,27 +53,6 @@ return {
to = { line = end_line, col = to_col },
}
end,
l = function(ai_type)
local line_num = vim.fn.line('.')
local line = vim.fn.getline(line_num)
if line == '' then
return {
from = { line = line_num, col = 1 },
to = { line = line_num, col = 1 },
}
end
local start_col, end_col
if ai_type == 'i' then
start_col = line:find('%S') or 1
end_col = line:match('.*%S()') or 1
else
start_col, end_col = 1, line:len()
end
return {
from = { line = line_num, col = start_col },
to = { line = line_num, col = end_col },
}
end,
I = function(ai_type)
local cur_line = vim.fn.line('.')
local cur_indent = vim.fn.indent(cur_line)
@ -126,10 +109,6 @@ return {
},
})
end,
keys = {
{ 'a', mode = { 'x', 'o' } },
{ 'i', mode = { 'x', 'o' } },
},
},
{
'monaqa/dial.nvim',