summaryrefslogtreecommitdiff
path: root/nixvim/plugins/lsp-format.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixvim/plugins/lsp-format.nix')
-rw-r--r--nixvim/plugins/lsp-format.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/nixvim/plugins/lsp-format.nix b/nixvim/plugins/lsp-format.nix
new file mode 100644
index 0000000..ac64463
--- /dev/null
+++ b/nixvim/plugins/lsp-format.nix
@@ -0,0 +1,17 @@
+{
+ keymaps = [
+ {
+ action = "FormatToggle";
+ key = "<leader>z";
+ mode = "n";
+ options = {
+ noremap = true;
+ silent = true;
+ };
+ }
+ ];
+
+ plugins.lsp-format = {
+ enable = true;
+ };
+}