feat: upgrade runtimes and neovim config (#216)

# 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>
This commit is contained in:
2025-04-24 11:43:39 +00:00
committed by João Paulo Dubas
parent f20ec96f4b
commit 016271c3be
6 changed files with 122 additions and 60 deletions

View File

@@ -1,5 +1,5 @@
diff --git a/init.lua b/init.lua
index cbf9ff6..0205207 100644
index 776c687..040cf83 100644
--- a/init.lua
+++ b/init.lua
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
@@ -39,7 +39,18 @@ index cbf9ff6..0205207 100644
-- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()`
@@ -682,6 +690,27 @@ require('lazy').setup({
@@ -632,7 +640,9 @@ require('lazy').setup({
[vim.diagnostic.severity.HINT] = '󰌶 ',
},
} or {},
- virtual_text = {
+ virtual_text = false,
+ -- Display multiline diagnostics on virtual lines
+ virtual_lines = {
source = 'if_many',
spacing = 2,
format = function(diagnostic)
@@ -676,6 +686,28 @@ require('lazy').setup({
-- ts_ls = {},
--
@@ -53,6 +64,7 @@ index cbf9ff6..0205207 100644
+ },
+ },
+ gopls = {},
+ harper_ls = {},
+ helm_ls = {},
+ html = { filetypes = { 'html', 'twig', 'hbs' } },
+ jsonls = {
@@ -67,7 +79,7 @@ index cbf9ff6..0205207 100644
lua_ls = {
-- cmd = { ... },
-- filetypes = { ... },
@@ -696,6 +725,32 @@ require('lazy').setup({
@@ -690,6 +722,32 @@ require('lazy').setup({
},
},
},
@@ -93,14 +105,14 @@ index cbf9ff6..0205207 100644
+ ["https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json"] = "*flow*.{yml,yaml}",
+ ["https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"] = "*docker-compose*.{yml,yaml}",
+ -- kubernetes = "*.{yml,yaml}",
+ }
+ }
+ }
+ }
+ },
+ },
+ },
+ },
}
-- Ensure the servers and tools above are installed
@@ -727,6 +782,33 @@ require('lazy').setup({
@@ -721,6 +779,33 @@ require('lazy').setup({
-- by the server configuration above. Useful when disabling
-- certain features of an LSP (for example, turning off formatting for ts_ls)
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
@@ -134,15 +146,33 @@ index cbf9ff6..0205207 100644
require('lspconfig')[server_name].setup(server)
end,
},
@@ -884,6 +966,7 @@ require('lazy').setup({
-- set group index to 0 to skip loading LuaLS completions as lazydev recommends it
group_index = 0,
},
+ { name = 'supermavem' },
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'path' },
@@ -899,19 +982,37 @@ require('lazy').setup({
@@ -801,6 +886,8 @@ require('lazy').setup({
opts = {},
},
'folke/lazydev.nvim',
+ 'saghen/blink.compat',
+ 'supermaven-inc/supermaven-nvim',
},
--- @module 'blink.cmp'
--- @type blink.cmp.Config
@@ -846,9 +933,15 @@ require('lazy').setup({
},
sources = {
- default = { 'lsp', 'path', 'snippets', 'lazydev' },
+ default = { 'lsp', 'path', 'snippets', 'lazydev', 'supermaven' },
providers = {
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
+ supermaven = {
+ name = 'supermanve',
+ module = 'blink.compat.source',
+ score_offset = 100,
+ async = true,
+ },
},
},
@@ -874,19 +967,39 @@ require('lazy').setup({
--
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
'folke/tokyonight.nvim',
@@ -151,6 +181,7 @@ index cbf9ff6..0205207 100644
+ 'wnkz/monoglow.nvim',
+ 'rjshkhr/shadow.nvim',
+ 'sainnhe/gruvbox-material',
+ 'slugbyte/lackluster.nvim',
+ },
priority = 1000, -- Make sure to load this before all the other start plugins.
config = function()
@@ -173,20 +204,21 @@ index cbf9ff6..0205207 100644
+ -- For monoglow the following variants area available:
+ -- 'monoglow-z', 'monoglow-lack', or 'monoglow-void'.
+ -- gruvbox-material configuration based on https://github.com/gonstoll/dotfiles/blob/2d7ec07bd475c73e7ba1a48b27a2a85315bfd2d1/.config/nvim/lua/plugins/colorscheme/gruvbox.lua#L5-L13
+ vim.g.gruvbox_material_better_performance = 1
+ vim.g.gruvbox_material_foreground = 'material'
+ vim.g.gruvbox_material_background = 'medium'
+ vim.g.gruvbox_material_ui_contrast = 'low'
+ vim.g.gruvbox_material_float_style = 'dim'
+ vim.g.gruvbox_material_enable_italic = 0
+ vim.g.gruvbox_material_disable_italic_comment = 1
+ vim.g.gruvbox_material_cursor = 'red'
+ vim.g.gruvbox_material_disable_terminal_colors = 1
+ vim.cmd.colorscheme 'gruvbox-material'
+ -- vim.g.gruvbox_material_better_performance = 1
+ -- vim.g.gruvbox_material_foreground = 'material'
+ -- vim.g.gruvbox_material_background = 'medium'
+ -- vim.g.gruvbox_material_ui_contrast = 'low'
+ -- vim.g.gruvbox_material_float_style = 'dim'
+ -- vim.g.gruvbox_material_enable_italic = 0
+ -- vim.g.gruvbox_material_disable_italic_comment = 1
+ -- vim.g.gruvbox_material_cursor = 'red'
+ -- vim.g.gruvbox_material_disable_terminal_colors = 1
+ -- vim.cmd.colorscheme 'gruvbox-material'
+ vim.cmd.colorscheme 'lackluster'
end,
},
@@ -961,7 +1062,39 @@ require('lazy').setup({
@@ -936,7 +1049,39 @@ require('lazy').setup({
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
opts = {
@@ -227,7 +259,7 @@ index cbf9ff6..0205207 100644
-- Autoinstall languages that are not installed
auto_install = true,
highlight = {
@@ -991,17 +1124,17 @@ require('lazy').setup({
@@ -966,17 +1111,17 @@ require('lazy').setup({
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
--
-- require 'kickstart.plugins.debug',