ci: format
This commit is contained in:
parent
e30ca4eb16
commit
9db185f4d4
13 changed files with 2252 additions and 52 deletions
|
|
@ -59,6 +59,7 @@ return {
|
|||
'snippet_forward',
|
||||
},
|
||||
},
|
||||
cmdline = { enabled = false },
|
||||
completion = {
|
||||
accept = {
|
||||
auto_brackets = { enabled = false },
|
||||
|
|
|
|||
|
|
@ -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>' } },
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -230,7 +230,6 @@ return {
|
|||
vim.g.diffs = {
|
||||
debug = '/tmp/diffs.log',
|
||||
fugitive = true,
|
||||
neogit = false,
|
||||
extra_filetypes = { 'diff' },
|
||||
hide_prefix = false,
|
||||
highlights = {
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -76,6 +76,10 @@
|
|||
"rev": "b7fde3719340946feb75017ef9d75edebdeb0566",
|
||||
"src": "https://github.com/echasnovski/mini.pairs"
|
||||
},
|
||||
"neogit": {
|
||||
"rev": "7073f3aafc9030d457838995106784a9d1873b3b",
|
||||
"src": "https://github.com/NeogitOrg/neogit"
|
||||
},
|
||||
"nvim-colorizer.lua": {
|
||||
"rev": "ae0d66307a5b431c7b633806eb27769334ac5f05",
|
||||
"src": "https://github.com/catgoose/nvim-colorizer.lua"
|
||||
|
|
@ -104,6 +108,10 @@
|
|||
"rev": "2802c15182dae2de71f9c82e918d7ba850b90c22",
|
||||
"src": "https://github.com/stevearc/overseer.nvim"
|
||||
},
|
||||
"plenary.nvim": {
|
||||
"rev": "b9fd5226c2f76c951fc8ed5923d85e4de065e509",
|
||||
"src": "https://github.com/nvim-lua/plenary.nvim"
|
||||
},
|
||||
"treesj": {
|
||||
"rev": "186084dee5e9c8eec40f6e39481c723dd567cb05",
|
||||
"src": "https://github.com/Wansmer/treesj"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,15 @@ vim.api.nvim_create_autocmd({ 'TermOpen', 'BufWinEnter' }, {
|
|||
group = aug,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = { 'fzf', 'TelescopePrompt', 'TelescopeResults' },
|
||||
callback = function()
|
||||
vim.opt_local.number = false
|
||||
vim.opt_local.relativenumber = false
|
||||
end,
|
||||
group = aug,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('BufReadPost', {
|
||||
command = 'sil! normal g`"',
|
||||
group = aug,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue