Bruno BELANYI
3438290e32
home: vim: tree-sitter: move mappings from 'after'
2024-07-19 11:38:55 +00:00
Bruno BELANYI
82f49f1389
home: vim: telescope: move mappings from 'after'
2024-07-19 11:38:55 +00:00
Bruno BELANYI
5918a0b9e6
home: vim: signtoggle: use lua callbacks
...
Use `vim.opt` because this is a local option (i.e: similar to `set` it
defaults to setting it locally, `vim.opt_local` is not necessary).
2024-07-19 11:38:55 +00:00
Bruno BELANYI
a7c542784c
home: vim: numbertoggle: use lua callbacks
...
Use `vim.opt` because those are local options (i.e: similar to `set` it
defaults to setting it locally, `vim.opt_local` is not necessary).
2024-07-19 11:38:55 +00:00
Bruno BELANYI
280829b54f
home: vim: signtoggle: fix toggling
...
Don't know how I missed this for so long...
2024-07-19 11:38:55 +00:00
Bruno BELANYI
5ffe2653c0
home: vim: git: work around partial staging issue
...
See [1].
[1]: https://github.com/lewis6991/gitsigns.nvim/issues/929
2024-07-19 11:38:54 +00:00
Bruno BELANYI
5592a120a4
home: vim: git: use 'partial'
2024-07-19 11:38:54 +00:00
Bruno BELANYI
bcd9a31bb8
home: vim: lua: utils: add 'partial'
...
Love me some functional goodness.
This was taken from [1].
[1]: https://reddit.com/r/lua/comments/fh2go5
2024-07-19 11:36:26 +00:00
Bruno BELANYI
966934a8bc
home: vim: git: use lua in hunk mappings
2024-07-19 11:36:26 +00:00
Bruno BELANYI
88e4d72366
home: vim: git: use lua in visual mappings
...
I thought the partial staging feature had broken, but it looks to be
unrelated [1].
[1]: https://github.com/lewis6991/gitsigns.nvim/issues/1088
2024-07-19 11:36:26 +00:00
Bruno BELANYI
16d68022eb
home: vim: enable swap and undo files
...
ci/woodpecker/push/check Pipeline was successful
Trying it on for size, since NeoVim does use XDG directories for those.
2024-07-12 19:13:09 +01:00
Bruno BELANYI
0de9966127
home: vim: remove redundant 'nobackup'
...
It's already the default.
2024-07-12 19:13:09 +01:00
Bruno BELANYI
452399ee4c
home: vim: oil: add detail view toggle mapping
2024-07-12 19:12:58 +01:00
Bruno BELANYI
6a6f3aed63
home: vim: migrate to 'oil.nvim'
2024-07-12 19:12:12 +01:00
Bruno BELANYI
dc90e14e60
home: vim: lspconfig: add 'starpls'
ci/woodpecker/push/check Pipeline was successful
2024-07-01 09:59:41 +00:00
Bruno BELANYI
c2362795d8
flake: bump inputs
...
Fixup `bash-language-server` which has been migrated out of `nodePackages`.
2024-06-21 15:40:34 +00:00
Bruno BELANYI
442d267ca2
home: vim: lsp: add missing type hint
2024-05-28 13:49:00 +00:00
Bruno BELANYI
e0b66e89f9
home: vim: ftplugin: remove bp
...
It's now part of the upstream runtime as of v0.10, so this file is
redundant and can be removed.
2024-05-24 14:39:55 +01:00
Bruno BELANYI
212f280d92
home: vim: remove commenting plug-ins
...
Rely on the new built-in support which was added upstream as part of
v0.10.
Crucially, upstream supports using tree-sitter aware comment strings by default.
2024-05-24 14:39:55 +01:00
Bruno BELANYI
cc82d7575f
home: vim: do not set 'termguicolors' explicitly
...
Rely on the new behaviour from v0.10 which detects it more
intelligently.
2024-05-24 14:39:55 +01:00
Bruno BELANYI
a60287f8cf
home: vim: remove 'nvim-osc52'
...
OSC52 supports has been added upstream, and is set up automatically when
`SSH_TTY` is set (and a few other conditions) in v0.10.
2024-05-24 14:39:55 +01:00
Bruno BELANYI
201fabbc14
home: vim: remove redundant ftdetect files
...
These have been added upstream and made redundant as part of the update
to v0.10.
2024-05-24 14:39:55 +01:00
Bruno BELANYI
89056e3d5d
home: vim: lspconfig: migrate to 'ruff'
...
ci/woodpecker/push/check Pipeline was successful
This replaces and enhances the experience from the old `ruff-lsp`
wrapper.
2024-05-23 22:38:55 +01:00
Bruno BELANYI
1cba7b609d
home: vim: null-ls: remove 'clang-format'
...
ci/woodpecker/push/check Pipeline was successful
I should be relying on `clangd` instead, which should always be
available whenever `clang-format` was.
2024-05-13 14:29:19 +00:00
Bruno BELANYI
811a9f44c5
home: vim: ftplugin: add json
ci/woodpecker/push/check Pipeline was successful
2024-05-10 09:36:09 +00:00
Bruno BELANYI
95c688766f
home: vim: ftplugin: add bp
2024-04-19 11:22:15 +00:00
Bruno BELANYI
3e6b9f7161
home: vim: ftdetect: add bp
...
Unfortunately, the `blueprint` filetype name is already taken...
2024-04-12 10:03:28 +00:00
Bruno BELANYI
10b4e6ce2d
home: vim: explicitly revert diff highlighting
2024-03-14 10:56:08 +00:00
Bruno BELANYI
0ff8366105
home: vim: fix path high-lighting
...
ci/woodpecker/push/check Pipeline was successful
It was previously linked to `Underlined`, which just looks plain wrong
IMO.
This links it back to `GruvboxOrange`, as it used to be.
2024-03-13 13:08:57 +00:00
Bruno BELANYI
d365aba3c0
home: vim: lua: utils: remove 'dump'
...
ci/woodpecker/push/check Pipeline was successful
It's now available as 'vim.print'.
2024-03-12 15:13:20 +00:00
Bruno BELANYI
b16b6a534b
home: vim: lua: lsp: use 'vim.print'
2024-03-12 15:11:11 +00:00
Bruno BELANYI
070df03b7e
home: vim: lua: utils: allow querying all clients
ci/woodpecker/push/check Pipeline was successful
2024-03-12 12:42:21 +00:00
Bruno BELANYI
0108b06a02
home: vim: lualine: use explicit buffer number
...
I want to tighten the API of this function a little bit, so let's be
more specific.
2024-03-12 12:40:49 +00:00
Bruno BELANYI
56e158f5c5
home: vim: lua: utils: fix deprecated function
2024-03-12 12:40:26 +00:00
Bruno BELANYI
4a8981c7b4
home: vim: lua: utils: fix documentation
2024-03-12 12:38:38 +00:00
Bruno BELANYI
07eca729f5
home: vim: null-ls: fix 'nixpkgs-fmt' condition
...
ci/woodpecker/push/check Pipeline was successful
I haven't configured `nil` to format anything.
And I don't really care to, this is good enough for me.
2024-03-12 11:31:20 +00:00
Bruno BELANYI
3fb758028c
home: vim: lspconfig: remove 'rnix-lsp'
...
It's been abandoned, `nil` is a better language server nowadays.
2024-03-12 10:16:45 +00:00
Bruno BELANYI
dc27b59912
home: vim: lspconfig: migrate to 'bashls'
...
Since `none-ls` has removed their `shellcheck` built-in. This actually
makes the diagnostics more robust to POSIX/non-POSIX scripts (the LSP
server detects it at runtime, which is more robust than the `ftdetect`
scripts).
Nice bonus: the shellcheck code is shown in the diagnostics message
without any configuration!
I'm not sure if I can configure `avoid-nullary-conditions` -- though it
seems like this check is broken at the moment (I couldn't get it to
trigger during my tests).
2024-03-11 17:32:54 +01:00
Bruno BELANYI
7a3e64f814
home: vim: lspconfig: add 'hls'
...
If I ever end up actually learning it...
2024-03-11 17:32:54 +01:00
Bruno BELANYI
f13a6fb023
home: vim: lspconfig: add 'ruff-lsp'
...
Since everybody is moving towards using it instead of other linters...
2024-03-11 17:32:54 +01:00
Bruno BELANYI
30247ce3a0
home: vim: null-ls: fix deprecated builtins
...
`none-ls` deprecated a lot of unmaintained builtins, or ones that they
find has been replaced by a compete LSP server.
This removes those deprecated builtins, or uses a shim until I migrate
to the relevant LSP configuration (for `bash-language-server`).
2024-03-11 17:32:54 +01:00
Bruno BELANYI
13f20a28eb
home: vim: add gn ftplugin
2024-01-22 16:55:57 +00:00
Bruno BELANYI
dca6a9018b
home: vim: ftdetect: add gn
2024-01-22 16:55:57 +00:00
Bruno BELANYI
b8b64bed8e
home: vim: ftdetect: add glsl
ci/woodpecker/push/check Pipeline was successful
2024-01-05 10:59:58 +00:00
Bruno BELANYI
9546c00124
home: vim: ftdetect: fix obsolete comment
2024-01-05 10:59:45 +00:00
Bruno BELANYI
55362b1db8
home: vim: add remove deprecated option
...
ci/woodpecker/push/check Pipeline was successful
The plug-in now configures itself automatically.
I could also set `vim.g.skip_ts_context_commentstring_module = true`,
but that should be removed soon enough anyway, and I would forget to
remove it...
2023-12-01 19:20:52 +00:00
Bruno BELANYI
65a8f7c481
home: create 'modules/home' folder
...
Consolidating all modules under the same path, to clear out the
top-level directory.
2023-11-11 18:12:05 +00:00