nvim: LSP format on save

This commit is contained in:
Johannes Rothe 2024-12-21 18:38:18 +01:00
parent 446e93f23f
commit aec0d3b8f3
2 changed files with 9 additions and 4 deletions

View File

@ -48,6 +48,7 @@
fish_add_path ~/go/bin/
export DEBFULLNAME="Johannes Rothe"
export DEBEMAIL="${mail}"
export GIT_EDITOR="nvim"
export GIT_AUTHOR_NAME="Johannes Rothe"
export GIT_AUTHOR_EMAIL="${mail}"
export GIT_COMMITTER_NAME="Johannes Rothe"

View File

@ -55,9 +55,9 @@
"<CR>" = "cmp.mapping.confirm({ select = false, behavior = cmp.ConfirmBehavior.Replace })";
};
};
committia.enable = true;
gitgutter.enable = true;
guess-indent.enable = true;
committia.enable = true; # Enhanced git commits
gitgutter.enable = true; # Show git change in first line
guess-indent.enable = true; # Guess indent of the file
lsp.enable = true;
lsp.servers.pylsp = {
enable = true;
@ -65,9 +65,13 @@
black.enabled = true;
isort.enabled = true;
ruff.enabled = true;
ruff.formatEnabled = false;
};
};
lualine.enable = true;
lsp-format.enable = true; # Automatically format on save
lsp-lines.enable = true; # Display lsp hints in lines
lsp-signature.enable = true; # Show function signature when typing
lualine.enable = true; # Statusline
treesitter.enable = true;
web-devicons.enable = true;
};