From 021093bd3da84d7499ee0991140222649cf9f978 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 14 Mar 2024 07:42:24 +0000 Subject: [PATCH] Foramt files with stylua --- after/plugin/treesitter.lua | 12 ++++++------ lua/opdavies/options.lua | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/after/plugin/treesitter.lua b/after/plugin/treesitter.lua index 59007af..b961f97 100644 --- a/after/plugin/treesitter.lua +++ b/after/plugin/treesitter.lua @@ -125,13 +125,13 @@ nmap { "th", "TSHighlightCapturesUnderCursor" } nmap { "tp", "TSPlaygroundToggle" } -- vim way: ; goes to the direction you were moving. -map {{ "n", "o", "x" }, ";", ts_repeat_move.repeat_last_move} -map {{ "n", "o", "x" }, ",", ts_repeat_move.repeat_last_move_opposite} +map { { "n", "o", "x" }, ";", ts_repeat_move.repeat_last_move } +map { { "n", "o", "x" }, ",", ts_repeat_move.repeat_last_move_opposite } -- Optionally, make builtin f, F, t, T also repeatable with ; and , -map {{ "n", "o", "x" }, "f", ts_repeat_move.builtin_f} -map {{ "n", "o", "x" }, "F", ts_repeat_move.builtin_F} -map {{ "n", "o", "x" }, "t", ts_repeat_move.builtin_t} -map {{ "n", "o", "x" }, "T", ts_repeat_move.builtin_T} +map { { "n", "o", "x" }, "f", ts_repeat_move.builtin_f } +map { { "n", "o", "x" }, "F", ts_repeat_move.builtin_F } +map { { "n", "o", "x" }, "t", ts_repeat_move.builtin_t } +map { { "n", "o", "x" }, "T", ts_repeat_move.builtin_T } context.setup { enable = true } diff --git a/lua/opdavies/options.lua b/lua/opdavies/options.lua index c75a4dc..23e8188 100644 --- a/lua/opdavies/options.lua +++ b/lua/opdavies/options.lua @@ -30,7 +30,7 @@ local settings = { tabstop = 2, termguicolors = true, textwidth = 0, - undodir = os.getenv("HOME") .. "/.vim/undodir", + undodir = os.getenv "HOME" .. "/.vim/undodir", undofile = true, updatetime = 1000, wrap = false,