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
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
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
9364fe546d
home: vim: telescope: set-up 'fzf' matching
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
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
15b3766aef
home: vim: configure 'nvim-cmp'
2022-03-08 10:41:35 +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
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
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
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
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
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
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
8b84ab8625
home: vim: add statement objects/moves
...
And document it.
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
a5ec91088d
home: vim: add 'treesitter-textobjects'
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
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
Bruno BELANYI
9caf296d52
home: vim: show diagnostics on hover
...
Ideally, I want the following features:
* diagnostic icons in the sign column always,
* virtual text on the current line only
* switch to hover window and/or lsp_lines display through a mapping
2022-03-02 12:30:53 +01:00
Bruno BELANYI
5437b45a02
home: vim: configure diagnostics further
...
This is not only 'lsp_lines' configuration anymore, but the whole
display of diagnostics.
2022-03-02 12:30:53 +01:00
Bruno BELANYI
bbc32d6030
home: vim: add 'nvim-treesitter'
...
IMHO, this is *very* colorful, I might not end up using the highlighting
after all.
Let's see if I get used to it after a little while.
2022-03-02 12:30:53 +01:00
Bruno BELANYI
58de8106a1
home: vim: add 'lsp_lines'
...
I dislike the diagnostics *next* to affected lines.
This looks neater, though the best look would be a simple hover window
or status line message instead, like ALE used to do.
It might grow on me however.
2022-03-02 12:30:53 +01:00
Bruno BELANYI
d52833f3a3
home: vim: add formatting on save with 'null-ls'
2022-03-02 12:30:53 +01:00