modules/lsp: add onAttach option

Similar to `plugins.lsp.onAttach`, implement a "global" equivalent to
the per-server `on_attach` callback.

This is implemented using a `LspAttach` autoCmd.
This commit is contained in:
Matt Sturgeon 2025-05-03 23:30:31 +01:00
parent 391e4fd093
commit a45b5f372f
2 changed files with 49 additions and 0 deletions

View file

@ -20,6 +20,7 @@ in
imports = [
./servers
./keymaps.nix
./on-attach.nix
];
config = {