fmt: alejandra

This commit is contained in:
♥ Minnie ♥ 2024-08-08 09:58:48 +08:00
parent a6a7676c4e
commit 537828c2e9
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
22 changed files with 124 additions and 168 deletions

View file

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
plugins.lsp = {
enable = true; # Enable neovim's built-in LSP.
@ -35,23 +33,22 @@
keymaps = {
# nvim-lsp keymaps should be silent
silent = true;
# Configure keymaps for our diagnostics.
# Configure keymaps for our diagnostics.
diagnostic = {
"<leader>n" = "open_float"; # Show diagnostics in floating window.
"<leader>o" = "goto_prev"; # Jump to previous diagnostic.
"<leader>e" = "goto_next"; # Jump to next diagnostic.
"<leader>o" = "goto_prev"; # Jump to previous diagnostic.
"<leader>e" = "goto_next"; # Jump to next diagnostic.
};
# Configure keymaps for our lspbuf.
lspBuf = {
K = "hover"; # Displays hover information¹
gr = "references"; # Lists all the references¹
gd = "definition"; # Jumps to the definition¹
gD = "declaration"; # Jumps to the declaration¹
gi = "implementation"; # Lists all the implementations¹
K = "hover"; # Displays hover information¹
gr = "references"; # Lists all the references¹
gd = "definition"; # Jumps to the definition¹
gD = "declaration"; # Jumps to the declaration¹
gi = "implementation"; # Lists all the implementations¹
gt = "type_definition"; # Jumps to the definition of the type¹
# ¹ for the symbol under the cursor
};
};
};
}