# Runtime
<details>
<summary><h2>Upgrades</h2></summary>
* `docker` from 28.0.1 to 28.0.4
* `docker compose` from 2.33.1 to 2.35.0
* `docker buildx` from 0.21.2 to 0.22.0
* `aqua:astral-sh/uv` from 0.6.12 to 0.6.16
* `aqua:aws/aws-cli` from 2.25.9 to 2.26.7
* `aqua:dagger/dagger` from 0.18.1 to 0.18.4
* `aqua:derailed/k9s` from 0.40.10 to 0.50.4
* `aqua:evilmartians/lefthook` from 1.11.11 to 1.11.6
* `aqua:eza-community/eza` from 0.21.0 to 0.21.1
* `aqua:github-cli` from 2.69.0 to 2.70.0
* `aqua:go-task/task` from 3.42.1 to 3.43.2
* `aqua:hashicorp/terraform` from 1.11.3 to 1.11.4
* `aqua:helm/helm` from 3.17.2 to 3.17.3
* `aqua:junegunn/fzf` from 0.61.0 to 0.61.3
* `aqua:sbstp/kubie` from 0.25.1 to 0.25.2
* `aqua:tilt-dev/tilt` from 0.34.0 to 0.34.2
* `aqua:xo/usql` from 0.19.19 to 0.19.21
* `npm:@anthropic-ai/claude-code` from 0.2.61 to 0.2.78
* `pipx:aider-chat` from 0.80.2 to 0.82.2
* `pipx:vectorcode` from 0.5.5 to 0.5.6
* `r` from 4.4.3 to 4.5.0
</details>
<details>
<summary><h2>Additions</h2></summary>
* `exercism`
* `neovim`
* move from `ppa` to release package
* `supabase`
</details>
# Others
<details>
<summary><h2><code>neovim</code></h2></summary>
* Upgrade to latest [commit in `master`](d350db2449
)
* Add `harper.ls` to check on writing
* Use [`virtual_lines`](https://neovim.io/doc/user/diagnostic.html#vim.diagnostic.Opts.VirtualLines) on [`vim.diagnostic`](https://neovim.io/doc/user/diagnostic.html#vim.diagnostic.Opts)
* Configure `supermaven` as a source in `blink.cmp`
* Use `lackluster` as colorscheme
* Configure `gemini` ai models in `avante`
</details>
<details>
<summary><h2>Autocompletion</h2></summary>
* `exercism`
* `supabase`
</details>
<details>
<summary><h2><code>aider</code></h2></summary>
* Configure `gemini`
</details>
Co-authored-by: Joao P Dubas <joao.dubas@gmail.com>
Reviewed-on: #216
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
304 lines
8.0 KiB
Lua
304 lines
8.0 KiB
Lua
-- You can add your own plugins here or in other files in this directory!
|
|
-- I promise not to create any merge conflicts in this directory :)
|
|
--
|
|
-- See the kickstart.nvim README for more information
|
|
return {
|
|
{
|
|
'joaodubas/gitlinker.nvim',
|
|
config = function()
|
|
local actions = require 'gitlinker.actions'
|
|
local hosts = require 'gitlinker.hosts'
|
|
require('gitlinker').setup {
|
|
opts = {
|
|
remote = 'origin',
|
|
add_current_line_on_normal_mode = true,
|
|
action_callback = actions.copy_to_clipboard,
|
|
print_url = true,
|
|
},
|
|
callbacks = {
|
|
['github.com'] = hosts.get_github_type_url,
|
|
['bitbucket.org'] = hosts.get_bitbucket_type_url,
|
|
['gitea.dubas.dev'] = hosts.get_gitea_type_url,
|
|
},
|
|
mappings = '<leader>gy',
|
|
}
|
|
end,
|
|
},
|
|
{
|
|
'NeogitOrg/neogit',
|
|
dependencies = {
|
|
'nvim-lua/plenary.nvim',
|
|
'sindrets/diffview.nvim',
|
|
'nvim-telescope/telescope.nvim',
|
|
},
|
|
opts = {
|
|
git_services = {
|
|
['gitea.dubas.dev'] = 'https://gitea.dubas.dev/${owner}/${repository}/compare/${branch_name}',
|
|
},
|
|
},
|
|
keys = {
|
|
{ '<leader>gs', '<cmd>Neogit<cr>', desc = 'Git status' },
|
|
},
|
|
},
|
|
'nvim-treesitter/nvim-treesitter-context',
|
|
{
|
|
'kevinhwang91/nvim-ufo',
|
|
dependencies = { 'kevinhwang91/promise-async' },
|
|
event = 'BufRead',
|
|
keys = function()
|
|
local ufo = require 'ufo'
|
|
return {
|
|
{ 'zR', ufo.openAllFolds, { desc = 'Open all folds' } },
|
|
{ 'zM', ufo.closeAllFolds, { desc = 'Close all folds' } },
|
|
{ 'zr', ufo.openFoldsExceptKinds, { desc = 'Open fold' } },
|
|
{ 'zm', ufo.closeFoldsWith, { desc = 'Close fold' } },
|
|
}
|
|
end,
|
|
opts = function()
|
|
local handler = function(virtText, lnum, endLnum, width, truncate)
|
|
local newVirtText = {}
|
|
local suffix = (' %d '):format(endLnum - lnum)
|
|
local sufWidth = vim.fn.strdisplaywidth(suffix)
|
|
local targetWidth = width - sufWidth
|
|
local curWidth = 0
|
|
for _, chunk in ipairs(virtText) do
|
|
local chunkText = chunk[1]
|
|
local chunkWidth = vim.fn.strdisplaywidth(chunkText)
|
|
if targetWidth > curWidth + chunkWidth then
|
|
table.insert(newVirtText, chunk)
|
|
else
|
|
chunkText = truncate(chunkText, targetWidth - curWidth)
|
|
local hlGroup = chunk[2]
|
|
table.insert(newVirtText, { chunkText, hlGroup })
|
|
chunkWidth = vim.fn.strdisplaywidth(chunkText)
|
|
-- str width returned from truncate() may less than 2nd argument, need padding
|
|
if curWidth + chunkWidth < targetWidth then
|
|
suffix = suffix .. (' '):rep(targetWidth - curWidth - chunkWidth)
|
|
end
|
|
break
|
|
end
|
|
curWidth = curWidth + chunkWidth
|
|
end
|
|
table.insert(newVirtText, { suffix, 'MoreMsg' })
|
|
return newVirtText
|
|
end
|
|
|
|
return {
|
|
fold_virt_text_handler = handler,
|
|
provider_selector = function(_, _, _)
|
|
return { 'treesitter', 'indent' }
|
|
end,
|
|
}
|
|
end,
|
|
},
|
|
{
|
|
'stevearc/oil.nvim',
|
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
|
keys = {
|
|
{ '-', '<cmd>Oil<cr>', desc = 'Open parent directory' },
|
|
},
|
|
opts = {},
|
|
},
|
|
{
|
|
'vhyrro/luarocks.nvim',
|
|
priority = 1000,
|
|
config = true,
|
|
},
|
|
{
|
|
'EvWilson/slimux.nvim',
|
|
lazy = true,
|
|
opts = function()
|
|
local status_ok, slimux = pcall(require, 'slimux')
|
|
if not status_ok then
|
|
return {}
|
|
end
|
|
return {
|
|
target_socket = slimux.get_tmux_socket(),
|
|
target_pane = string.format('%s.1', slimux.get_tmux_window()),
|
|
}
|
|
end,
|
|
keys = function()
|
|
local status_ok, which_key = pcall(require, 'which-key')
|
|
if status_ok then
|
|
which_key.add {
|
|
{ '<leader>m', group = 'Toggle ter[m]inal' },
|
|
}
|
|
end
|
|
local slimux_status_ok, slimux = pcall(require, 'slimux')
|
|
if not slimux_status_ok then
|
|
return {}
|
|
end
|
|
return {
|
|
{
|
|
'<leader>xr',
|
|
slimux.send_highlighted_text,
|
|
mode = 'v',
|
|
desc = 'Send currently highlighted text to configured tmux pane',
|
|
},
|
|
{
|
|
'<leader>r',
|
|
slimux.send_paragraph_text,
|
|
mode = 'n',
|
|
desc = 'Send paragraph under cursor to configured tmux pane',
|
|
},
|
|
}
|
|
end,
|
|
},
|
|
{
|
|
'yetone/avante.nvim',
|
|
event = 'VeryLazy',
|
|
lazy = false,
|
|
version = false,
|
|
opts = {
|
|
provider = 'gemini_pro',
|
|
auto_suggestion_provider = 'gemini_flash',
|
|
claude = {
|
|
model = 'claude-3-7-sonnet-20250219',
|
|
temperature = 0,
|
|
max_tokens = 20480,
|
|
},
|
|
vendors = {
|
|
gemini_pro = {
|
|
__inherited_from = 'gemini',
|
|
model = 'gemini-2.5-pro-exp-03-25',
|
|
temperature = 0.25,
|
|
max_tokens = 204800,
|
|
},
|
|
gemini_flash = {
|
|
__inherited_from = 'gemini',
|
|
model = 'gemini-2.0-flash',
|
|
temperature = 0.25,
|
|
max_tokens = 20480,
|
|
},
|
|
},
|
|
behaviour = {
|
|
auto_suggestions = false,
|
|
auto_set_highlight_group = true,
|
|
aute_set_keymaps = true,
|
|
auto_apply_diff_after_generation = true,
|
|
support_paste_from_clipboard = false,
|
|
minimize_diff = true,
|
|
},
|
|
mappings = {
|
|
diff = {
|
|
ours = 'co',
|
|
theirs = 'ct',
|
|
all_theirs = 'ca',
|
|
both = 'cb',
|
|
cursor = 'cc',
|
|
next = ']x',
|
|
prev = '[x',
|
|
},
|
|
suggestion = {
|
|
accept = '<M-l>',
|
|
next = '<M-]>',
|
|
prev = '<M-[>',
|
|
dismiss = '<C-]>',
|
|
},
|
|
jump = {
|
|
next = ']]',
|
|
prev = '[[',
|
|
},
|
|
submit = {
|
|
normal = '<CR>',
|
|
insert = '<C-s>',
|
|
},
|
|
sidebar = {
|
|
apply_all = 'A',
|
|
apply_cursor = 'a',
|
|
switch_windows = '<Tab>',
|
|
reverse_switch_windows = '<S-Tab>',
|
|
},
|
|
},
|
|
hints = { enabled = true },
|
|
windows = {
|
|
position = 'right',
|
|
wrap = true,
|
|
width = 30,
|
|
sidebar_header = {
|
|
enabled = true,
|
|
align = 'center',
|
|
rounded = true,
|
|
},
|
|
input = {
|
|
prefix = '> ',
|
|
height = 8,
|
|
},
|
|
edit = {
|
|
border = 'rounded',
|
|
start_insert = true,
|
|
},
|
|
ask = {
|
|
floating = false,
|
|
start_insert = true,
|
|
border = 'rounded',
|
|
focus_on_apply = 'ours',
|
|
},
|
|
},
|
|
highlights = {
|
|
diff = {
|
|
current = 'DiffText',
|
|
incoming = 'DiffAdd',
|
|
},
|
|
},
|
|
diff = {
|
|
autojump = true,
|
|
list_opener = 'copen',
|
|
override_timeoutlen = 500,
|
|
},
|
|
},
|
|
build = 'make',
|
|
dependencies = {
|
|
'nvim-treesitter/nvim-treesitter',
|
|
'stevearc/dressing.nvim',
|
|
'nvim-lua/plenary.nvim',
|
|
'MunifTanjim/nui.nvim',
|
|
'hrsh7th/nvim-cmp',
|
|
'nvim-telescope/telescope.nvim',
|
|
'nvim-tree/nvim-web-devicons',
|
|
{
|
|
'HakonHarnes/img-clip.nvim',
|
|
event = 'VeryLazy',
|
|
opts = {
|
|
default = {
|
|
embed_image_as_base64 = false,
|
|
prompt_for_file_name = false,
|
|
drag_and_drop = {
|
|
insert_mode = true,
|
|
},
|
|
use_absolute_path = true,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
'MeanderingProgrammer/render-markdown.nvim',
|
|
opts = {
|
|
file_types = { 'markdown', 'Avante' },
|
|
},
|
|
ft = { 'markdown', 'Avante' },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
'supermaven-inc/supermaven-nvim',
|
|
opts = {
|
|
keymaps = {
|
|
accept_suggestion = '<Tab>',
|
|
clear_suggestion = '<C-]>',
|
|
accept_word = '<C-j>',
|
|
},
|
|
},
|
|
},
|
|
{
|
|
'sphamba/smear-cursor.nvim',
|
|
opts = {
|
|
cursor_color = '#ff8800',
|
|
gamma = 1,
|
|
hide_target_hack = true,
|
|
stiffness = 0.3,
|
|
trailing_exponent = 10,
|
|
trailing_stiffness = 0.1,
|
|
},
|
|
},
|
|
}
|