Commit graph

515 commits

Author SHA1 Message Date
Bruno BELANYI 34c13b077f home: zsh: refactor tmux auto-launch configuration
Introduce an actual option for this behaviour.
2023-02-22 16:11:18 +00:00
Bruno BELANYI 0bbf522c03 home: tmux: change 'use lib.my' to 'use libs' 2023-02-22 16:00:26 +00:00
Bruno BELANYI ee6a735a2c home: add nix
This is basically the same thing as the NixOS module, except for
NIX_PATH handling [1].

[1]: https://github.com/nix-community/home-manager/pull/2677
2023-02-21 17:52:39 +00:00
Bruno BELANYI 86aa156fc0 home: tmux: fix 'hasGui' logic
All checks were successful
continuous-integration/drone/push Build is passing
Take advantage of this fix to make the code more extensible.
2023-02-20 11:19:20 +00:00
Bruno BELANYI 54f335d984 home: tmux: always use tmux-yank
This plugin does have some useful binds.

Since it still sends the OSC52 escape sequence when copying, I don't
have a problem with remote hosts.
2023-02-20 11:19:13 +00:00
Bruno BELANYI 4e59c0d551 home: firefox: tridactyl: fix DDG mapping
All checks were successful
continuous-integration/drone/push Build is passing
They broke, once again...
2023-02-19 14:16:13 +00:00
Bruno BELANYI 75396c4c4c home: firefox: tridactyl: use more private editor
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-19 14:12:09 +00:00
Bruno BELANYI 5d42f55fc6 home: firefox: tridactyl: fix 'editorcmd'
All checks were successful
continuous-integration/drone/push Build is passing
Turns out `alacritty` is smarter than `termit` with its handling of
command execution (i.e: actually expects multiple arguments to exec(2)).

So account for the difference in the module.
2023-02-19 14:02:57 +00:00
Bruno BELANYI e667c042cb home: zsh: add colorful aliases
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-19 12:25:40 +00:00
Bruno BELANYI 225e8f236e home: vim: ftdetect: add direnv
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-17 15:53:55 +00:00
Bruno BELANYI 2ec9aae6b7 home: pager: remove colored man pages
All checks were successful
continuous-integration/drone/push Build is passing
It seems to have broken at some point, and I didn't notice.

Might as well remove it since I do not care for it.
2023-02-16 12:06:28 +00:00
Bruno BELANYI a61a602bd2 home: ssh: include local-only config file
Useful for configuration options that should remain secret.
2023-02-15 15:02:15 +00:00
Bruno BELANYI e8a46ae248 home: firefox: tridactyl: use preferred terminal
Thankfully, alacritty and termite both use the same command line
arguments for this. If I ever want to use another one, I might have to
make the logic a bit more robust.
2023-02-12 17:33:45 +00:00
Bruno BELANYI 4f883b0198 home: terminal: remove DPI workaround
And instead change the font size to be *about* right.
2023-02-12 17:32:48 +00:00
Bruno BELANYI f89e10fdca home: terminal: add alacritty 2023-02-12 16:57:54 +00:00
Bruno BELANYI b6bbe5a01e home: firefox: tridactyl: move cursor in editor
This means that the cursor in vim will be in the same position as the
one in the input form.
2023-02-12 16:57:54 +00:00
Bruno BELANYI d25922ef15 home: packages: remove 'termite.terminfo' 2023-02-12 16:46:18 +00:00
Bruno BELANYI c1c3146311 home: zsh: always enable VTE integration 2023-02-12 16:43:55 +00:00
Bruno BELANYI 70f5e46860 home: tmux: fix OSC52 forwarding
All checks were successful
continuous-integration/drone/push Build is passing
I want neovim to be able to set my clipboard, and don't care for the
potential security issues of letting any program be able to do such a
thing.
2023-02-12 12:03:10 +00:00
Bruno BELANYI 2ffb8e6ee6 home: vim: add 'nvim-osc52'
All checks were successful
continuous-integration/drone/push Build is passing
I do get the message when copying into the clipboard while ssh-ing.

But trying to paste from my system clipboard shows that it did *not* get
copied. This seems to only happen inside tmux.

However tmux itself *does* copy to the clipboard correctly through OSC52.
2023-02-12 11:55:58 +00:00
Bruno BELANYI e04fa74412 home: vim: lua: utils: add 'is_ssh'
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-11 22:17:22 +00:00
Bruno BELANYI 8dcc59d481 flake: bump inputs
All checks were successful
continuous-integration/drone/push Build is passing
And migrate firefox extensions configuration to the profile-specific
format.
2023-02-08 22:02:40 +00:00
Bruno BELANYI 699b6b8e33 home: zsh: include local-only config file
All checks were successful
continuous-integration/drone/push Build is passing
Useful for configuration options that should remain secret.
2023-02-08 14:44:23 +00:00
Bruno BELANYI 3a0fa3398d home: zsh: modify 'initExtra' inclusion style 2023-02-08 14:43:39 +00:00
Bruno BELANYI 938fb71f9c home: git: include local-only config file
Useful for configuration options that should remain secret.
2023-02-08 14:31:32 +00:00
Bruno BELANYI 5a07dda93b home: git: setup work identity
Now that I am at Google, gotta make sure I use the correct identity.
2023-02-08 14:24:05 +00:00
Bruno BELANYI 2b3fb4fa5a home: vim: use shorter tree-sitter alias 2023-02-08 14:03:23 +00:00
Bruno BELANYI 0e4a4df544 home: zsh: add usual aliases
I forgot to add them, since on NixOS they are defined at the system
level by default.
2023-02-08 10:36:10 +00:00
Bruno BELANYI 4971634115 home: vim: make it the default editor explicitly 2023-02-07 14:19:50 +00:00
Bruno BELANYI b4d745c50e home: vim: add 'cmp_luasnip'
I had forgotten to add it even though I configured it as a source...
2023-01-20 19:16:20 +00:00
Bruno BELANYI 19e42cdc26 home: vim: reorder snippet plugins 2023-01-20 19:15:31 +00:00
Bruno BELANYI 5f3299e383 home: vim: luasnip: use lazy-loading 2023-01-20 19:10:14 +00:00
Bruno BELANYI 92e63eae25 home: firefox: remove 'https-everywhere'
It's been made redundant.
2023-01-14 20:10:56 +01:00
Bruno BELANYI 18f81a05eb home: mail: disable himalaya
I don't actually use it, should circle back to it in the future.
2022-12-16 12:56:16 +01:00
Bruno BELANYI 6913e0f896 flake: bump inputs
Some new options were needed for `himalaya`.
2022-12-16 12:55:01 +01:00
Bruno BELANYI 16d4147321 home: vim: lspconfig: update deprecated call 2022-11-03 18:07:00 +01:00
Bruno BELANYI 236d48befb home: vim: lua: lsp: update for nvim 0.8
Two big changes:

* Making use of the lua API for creating autocmds.
* Using `client.supports_method`.
2022-11-03 18:07:00 +01:00
Bruno BELANYI 3c3e56002f home: vim: add 'nix' ftplugin 2022-10-26 14:14:01 +02:00
Bruno BELANYI e0b7103c8d home: wm: i3: add floating-related mappings 2022-10-04 11:40:44 +02:00
Bruno BELANYI 5e021e6436 all: remove package aliases 2022-09-30 08:59:27 +02:00
Bruno BELANYI 4216c654e7 home: vim: migrate to 'nvim-surround'
It's potentially more customizable, and integrates with tree-sitter. It
also allows for buffer/filetype specific pairs.
2022-09-02 09:56:20 +02:00
Bruno BELANYI 6748b5b5e6 home: mail: accounts: use 'outlook' flavor 2022-08-31 17:16:44 +02:00
Bruno BELANYI 3efba75169 home: gdb: fix auto-load safe path 2022-08-10 15:23:21 +02:00
Bruno BELANYI 468fbdd69a home: xdg: do not set 'WGETRC'
I don't use it...
2022-07-11 14:11:43 +02:00
Bruno BELANYI 9f82981602 home: vim: add 'nvim-lspconfig'
For some reason I had not added it to my plug-in list, but it still
worked until I bumped my inputs.
2022-06-23 10:02:32 +02:00
Bruno BELANYI 7e4e41a07f home: vim: add 'tiger' file-type configuration 2022-06-20 14:33:44 +02:00
Bruno BELANYI 530fb66e19 home: migrate 'cursor' module to new option
Make it part of 'home.wm' now, since that makes more sense.

Not sure about making it related to 'i3' being activated though, will
need to think about this in the future.
2022-06-15 11:27:03 +02:00
Bruno BELANYI 341450db5c home: vim: ftdetect: add tiger 2022-06-15 11:27:03 +02:00
Bruno BELANYI 489b79f078 home: vim: completion: activate 'ghost_text'
I'm still thinking whether I would want to use one of those signature
helper windows to go with this/replace this feature.

Could be especially useful in C++.
2022-05-19 14:53:09 +02:00
Bruno BELANYI 80c5748122 home: packages: remove 'rr'
No need for this, now that I have a dedicated option for the package.
2022-05-10 13:51:49 +02:00
Bruno BELANYI a625f5b741 home: wm: i3: simplify 'htop' rule
Turns out you can chain commands with `,` in a `for_window` statement.

Of course this is inconsistent with `bindsym` which uses `;`...
2022-05-03 10:01:42 +02:00
Bruno BELANYI 93e50508c9 home: vim: lua: lsp: add signature help mapping 2022-04-27 14:02:17 +02:00
Bruno BELANYI 70fc01d5df home: firefox: tridactyl: fix comment toggle
Ignore javascript event, like the upstream binding.
2022-04-27 14:02:17 +02:00
Bruno BELANYI e514389a3d home: firefox: tridactyl: add 'Nitter' redirect 2022-04-27 14:02:17 +02:00
Bruno BELANYI e591344eb3 home: vim: git: map keys on start
Instead of mapping those keys when `gitsigns` attaches to a buffer...
2022-04-27 14:02:17 +02:00
Bruno BELANYI 481d5f6f53 home: vim: lualine: use 'FugitiveHead'
The built-in `branch` indicator does not handle git worktrees quite
correctly.

It shows the wrong branch when used in `git commit`.
2022-04-27 14:02:17 +02:00
Bruno BELANYI ed8aae565e home: direnv: allow specifying default flake 2022-04-13 10:06:26 +02:00
Bruno BELANYI 9a57ba02b7 home: direnv: add 'nix' library file 2022-04-13 10:04:54 +02:00
Bruno BELANYI 90053e52e1 home: direnv: add 'python' library file 2022-04-13 09:20:52 +02:00
Bruno BELANYI 8ec992cbe3 home: direnv: add 'postgres' library file 2022-04-12 17:34:36 +02:00
Bruno BELANYI f637401cd6 home: zsh: use packaged 'agkozak-zsh-prompt' 2022-04-11 18:33:15 +02:00
Bruno BELANYI 7334a84a77 home: wm: i3: bigger 'htop' window
It seems like one cannot use multiple commands in a `for_window`
directive. So use two different ones.
2022-03-29 15:49:08 +02:00
Bruno BELANYI 15602412c8 home: gdb: remove HOME pollution
Now that the version in nixpkgs contains the patch to look at
XDG_CONFIG_HOME, use only that one.
2022-03-25 15:49:05 +01:00
Bruno BELANYI bab317e2f4 home: vim: null-ls: prefer 'pflake8' if available 2022-03-11 14:30:27 +01:00
Bruno BELANYI b71be091a2 home: git: use 'zdiff3' merge conflict markers
See GitHub's presentation about this feature [1].

[1]: https://github.blog/2022-01-24-highlights-from-git-2-35/
2022-03-11 14:11:32 +01:00
Bruno BELANYI 20e0a96e65 home: vim: telescope: add 'which-key' mapping
This opens a little preview window with different mappings for
telescope.
2022-03-11 14:11:07 +01:00
Bruno BELANYI fda1b235bc home: vim: telescope: disable scrolling up 2022-03-11 14:03:18 +01:00
Bruno BELANYI 7060891b2d home: vim: set 'termguicolors'
For once, I like the look *with* 24-bit colors better on this current
color-scheme.
2022-03-11 14:02:01 +01:00
Bruno BELANYI 6417b5f4ba home: vim: sort plugin list 2022-03-11 10:08:25 +01:00
Bruno BELANYI d103cbbb0e home: wm: i3bar: show microphone status 2022-03-09 12:09:43 +01:00
Bruno BELANYI 8d4a1e61b4 home: vim: telescope: add LSP handler 2022-03-08 20:57:28 +01:00
Bruno BELANYI 4c5c9deaae home: vim: move 'on_attach' to 'ambroisie.lsp' 2022-03-08 20:20:22 +01:00
Bruno BELANYI fc35502141 home: vim: lspconfig: use actual 'lspconfig' name 2022-03-08 20:18:02 +01:00
Bruno BELANYI 32890d6cf2 home: vim: completion: do not use tab to select
I would rather have my actual preferred mappings, <C-n> and <C-p>, for
that.
2022-03-08 10:41:35 +01:00
Bruno BELANYI 3673ec604a home: vim: lualine: remove 'fzf' integration
I do not use 'fzf' anymore.
2022-03-08 10:41:35 +01:00
Bruno BELANYI 1f8882b415 home: vim: configure 'luasnip' 2022-03-08 10:41:35 +01:00
Bruno BELANYI a923c2c30e home: vim: add 'friendly-snippets' 2022-03-08 10:41:35 +01:00
Bruno BELANYI 37552d6508 home: vim: completion: remove up/down mappings
I do not use arrow keys, why bother with them.
2022-03-08 10:41:35 +01:00
Bruno BELANYI 85a7e200ad home: vim: add 'nvim-ts-context-commentstring' 2022-03-08 10:41:35 +01:00
Bruno BELANYI fa8961c9d9 home: vim: comparison: stronger priority hint 2022-03-08 10:41:35 +01:00
Bruno BELANYI 01f2dfd028 home: vim: completion: configure snippets 2022-03-08 10:41:35 +01:00
Bruno BELANYI 551ef640fc home: vim: sort plugin list 2022-03-08 10:41:35 +01:00
Bruno BELANYI fb3b773249 home: vim: add 'luasnip' 2022-03-08 10:41:35 +01:00
Bruno BELANYI 975f8687fc home: vim: completion: add mapping to scroll docs 2022-03-08 10:41:35 +01:00
Bruno BELANYI 506c52fb83 home: vim: completion: add 'cmp-under-comparator' 2022-03-08 10:41:35 +01:00
Bruno BELANYI 0f140bbc9d home: vim: completion: explicit mappings
This is basically a copy-paste of the default mappings, with some small
amount of customization.
2022-03-08 10:41:35 +01:00
Bruno BELANYI d35c675ace home: vim: configure 'dressing-nvim' 2022-03-08 10:41:35 +01:00
Bruno BELANYI 0b2911e49e home: vim: add 'dressing-nvim' 2022-03-08 10:41:35 +01:00
Bruno BELANYI 9364fe546d home: vim: telescope: set-up 'fzf' matching 2022-03-08 10:41:35 +01:00
Bruno BELANYI 8b4da72c84 home: vim: add 'telescope' grep mappings 2022-03-08 10:41:35 +01:00
Bruno BELANYI 7fec5f870a home: vim: replace 'fzf' with 'telescope'
I like the fact that it uses built-in buffers to preview files.

It also has more inertia behind it, tighter integrations in the
ecosystem.
2022-03-08 10:41:35 +01:00
Bruno BELANYI 5e3bd82f8b home: packages: add 'fd' 2022-03-08 10:41:35 +01:00
Bruno BELANYI 62e29fc622 home: packages: add 'ripgrep' 2022-03-08 10:41:35 +01:00
Bruno BELANYI b8bd1ef2b4 home: vim: completion: limit 'buffer' suggestions
Otherwise it gets overwhelming, and most are useless.
2022-03-08 10:41:35 +01:00
Bruno BELANYI 5b8e410596 home: vim: completion: use better order 2022-03-08 10:41:35 +01:00
Bruno BELANYI aac464c9a2 home: vim: completion: use native menu 2022-03-08 10:41:35 +01:00
Bruno BELANYI 8bcd40633a home: vim: configure 'nvim-cmp' for LSP 2022-03-08 10:41:35 +01:00
Bruno BELANYI bceb531518 home: vim: add 'cmp-nvim-lsp' 2022-03-08 10:41:35 +01:00
Bruno BELANYI 15b3766aef home: vim: configure 'nvim-cmp' 2022-03-08 10:41:35 +01:00
Bruno BELANYI 02225dcb93 home: vim: add 'nvim-cmp' 2022-03-04 17:40:30 +01:00
Bruno BELANYI d006ba4611 home: vim: git: more visual mappings
I cannot use the functions directly, as I would need to calculate the
current selections begin and end points and use them as arguments.

To be investigated.
2022-03-04 17:40:30 +01:00
Bruno BELANYI 714eb8ca2d home: vim: git: 'gitsigns' mappings are per buffer 2022-03-04 17:40:30 +01:00
Bruno BELANYI 10635e0888 home: vim: git: use more appropriate mapping names 2022-03-04 17:40:30 +01:00
Bruno BELANYI f374a4f78c home: vim: lsp: add diagnostic mappings 2022-03-04 17:40:30 +01:00
Bruno BELANYI ac0df2552a home: vim: lsp: add workspace mappings 2022-03-04 17:40:30 +01:00
Bruno BELANYI eaeb9db76f home: vim: add 'dump' utility function 2022-03-04 17:40:30 +01:00
Bruno BELANYI 2ad4ba563d home: vim: remove 'fastfold'
I don't think I need it anymore, neovim improves the native performance
well enough.
2022-03-04 17:40:30 +01:00
Bruno BELANYI f10d3f7310 home: vim: add mappings for LSP functionality 2022-03-04 17:40:30 +01:00
Bruno BELANYI bde9bef1c9 home: vim: don't use 'nixpkgs-fmt' with 'rnix' 2022-03-04 17:40:30 +01:00
Bruno BELANYI 8b4a5e174f home: vim: add 'rnix' LSP configuration 2022-03-04 17:40:30 +01:00
Bruno BELANYI 997b98f49b home: vim: add 'clang-tools' to vim package
It includes both `clangd` and `clang-format`, even though I'm mostly
looking for the later.
2022-03-04 17:40:30 +01:00
Bruno BELANYI 03564813af home: vim: add linters & formatters to vim package
I use them so often, I basically always want them available.
2022-03-04 17:40:30 +01:00
Bruno BELANYI 7546417782 home: vim: add 'shellcheck' code actions 2022-03-04 17:40:30 +01:00
Bruno BELANYI c28710773b home: vim: rename 'git'-related settings file
Now that it contains more settings than just 'gitsigns'.
2022-03-04 17:40:30 +01:00
Bruno BELANYI b6435f0d57 home: vim: centralise 'git'-related mappings 2022-03-04 17:40:30 +01:00
Bruno BELANYI 03e412b2f0 home: vim: configure 'gitsigns'
And remove some unused mappings, or adapt them to 'gitsigns'.
2022-03-04 17:40:30 +01:00
Bruno BELANYI 267b82393f home: vim: add 'gitsigns-nvim' 2022-03-04 17:40:30 +01:00
Bruno BELANYI 8a6a18732a home: bat: use 'gruvbox-dark' theme
To match my `vim` configuration.
2022-03-04 17:40:30 +01:00
Bruno BELANYI 2eb1f5cc44 home: vim: prefer 'clangd' to 'clang-format'
Only use `clang-format` if `clangd` is not available, as its formatting
is otherwise built into the LSP server.
2022-03-04 17:40:30 +01:00
Bruno BELANYI 12d2436713 home: vim: use 'unimpaired' mappings for quickfix 2022-03-04 17:40:30 +01:00
Bruno BELANYI b6d1702726 home: zsh: add 'zsh-completions' when enabled
Notably useful for `git-revise`.
2022-03-04 17:40:30 +01:00
Bruno BELANYI 4356ae0f36 home: zsh: refactor 'mkIf' block 2022-03-04 17:40:30 +01:00
Bruno BELANYI e2be5f6139 home: zsh: use packaged 'fast-syntax-highlighting' 2022-03-04 17:40:30 +01:00
Bruno BELANYI bce9855da1 home: vim: show LSP progress in status line 2022-03-04 17:40:30 +01:00
Bruno BELANYI 2152f9dd1e home: vim: switch to 'lualine' 2022-03-04 17:40:30 +01:00
Bruno BELANYI 9c3daae2b8 home: vim: add function to list LSP client names 2022-03-04 17:40:30 +01:00
Bruno BELANYI ea9a0d835b home: vim: remove unused 'gruvbox' configuration 2022-03-04 17:40:30 +01:00
Bruno BELANYI d3c04107bf home: vim: move diagnostics config to 'on_attach' 2022-03-04 17:40:30 +01:00
Bruno BELANYI 336d86d2d8 home: vim: add 'clangd' LSP configuration 2022-03-04 17:40:30 +01:00
Bruno BELANYI ae94693540 home: vim: add 'rust-analyzer' LSP configuration 2022-03-04 17:40:30 +01:00
Bruno BELANYI 84188cb7fa home: vim: add basic LSP configuration
Trying it out with `pyright` for now.
2022-03-04 17:40:30 +01:00
Bruno BELANYI 53d84b884d home: vim: move LSP-related 'on_attach' to 'utils'
As it will be shared between `null-ls` and `lspconfig`, it makes sense
to put it there.
2022-03-04 14:54:14 +01:00
Bruno BELANYI 9dc910eae3 home: vim: add diagnostic navigation mappings 2022-03-04 14:51:44 +01:00
Bruno BELANYI 260f5cd66a home: vim: do not use 'ftplugin' for 'null-ls'
Unfortunately, this registers the sources many times...

I fear that I will have to settle for a centralised configuration for
LSP-related options.
2022-03-04 14:14:30 +01:00
Bruno BELANYI fb49a1df14 home: vim: only use 'null-ls' sources if available
This avoids the big red warning on each file that tries to use those
sources...
2022-03-03 18:15:28 +01:00
Bruno BELANYI 8155f6be4c home: vim: add 'ambroisie.utils' lua module 2022-03-03 18:15:28 +01:00
Bruno BELANYI 8b84ab8625 home: vim: add statement objects/moves
And document it.
2022-03-03 18:15:28 +01:00
Bruno BELANYI 56554f1a7a home: vim: document 'tree-sitter' moves 2022-03-03 18:15:28 +01:00
Bruno BELANYI 8ad5327c89 home: vim: add 'tree-sitter' moves 2022-03-03 18:15:28 +01:00
Bruno BELANYI 063686433f home: vim: document 'treesitter-textobjects' maps
By using 'which-key'.
2022-03-03 18:15:28 +01:00
Bruno BELANYI a5ec91088d home: vim: add 'treesitter-textobjects' 2022-03-03 18:15:28 +01:00
Bruno BELANYI e81aee50e3 home: vim: remove mapping to run 'make' 2022-03-03 18:15:28 +01:00
Bruno BELANYI 1408d7735a home: vim: document 'commentary' mappings
By using 'which-key'.
2022-03-03 18:15:28 +01:00
Bruno BELANYI 2713270378 home: vim: document 'unimpaired' mappings
By using 'which-key'.
2022-03-03 18:15:28 +01:00
Bruno BELANYI 4fec4d499d home: vim: use 'which-key' 2022-03-03 18:15:28 +01:00
Bruno BELANYI 9e7f7ed736 home: vim: add 'which-key-nvim' 2022-03-02 12:30:53 +01:00
Bruno BELANYI b76af022bd home: vim: move leader mappings to 'init.vim' 2022-03-02 12:30:53 +01:00
Bruno BELANYI 8b570694cd home: vim: remove unused mappings
The beancount mappings are absolutely unused.

The `Y` mapping is built in NeoVim nowadays.
2022-03-02 12:30:53 +01:00
Bruno BELANYI d15bc59b74 home: vim: remove unimpaired mappings
I do not use `azerty` anymore, no need for those.
2022-03-02 12:30:53 +01:00
Bruno BELANYI 875c3c8886 home: vim: remove 'lsp_lines'
I like the hovering behaviour better, it's less "in your face".

I might revisit the idea in the future, as a toggled mapping.
2022-03-02 12:30:53 +01:00