aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2022-06-02 15:49:22 +0200
committerNicholas Rodrigues Lordello <[email protected]>2023-12-12 23:29:58 +0100
commitb2935ab80cc7bc5d487b3e4588ddb4124a45f229 (patch)
tree73d2655d41466e8223e3f41848085527429d37db
parentcde55402710c8381690a1b871bd0e18f1dbf6aea (diff)
Set expand tab rules
-rw-r--r--config/nvim/lua/config/keys.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/nvim/lua/config/keys.lua b/config/nvim/lua/config/keys.lua
index 188fd8f..0e8b564 100644
--- a/config/nvim/lua/config/keys.lua
+++ b/config/nvim/lua/config/keys.lua
@@ -17,6 +17,12 @@ local function setup()
r = {"<cmd>Telescope grep_string<cr>", "String"},
p = {"<cmd>Telescope planets<cr>", "Planet"},
},
+ x = {
+ name = "indentation"
+ 2 = {"<cmd>set expandtab shiftwidth=2 tabstop=2<cr>", "2-space"},
+ 4 = {"<cmd>set expandtab shiftwidth=4 tabstop=4<cr>", "2-space"},
+ t = {"<cmd>set noexpandtab shiftwidth=4 tabstop=4<cr>", "2-space"},
+ },
}, {
prefix = "<leader>",
})