summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-05-22 16:54:11 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-05-22 16:54:11 -0500
commitf83593f430118f0499454f88cbe028c822e760a3 (patch)
tree89fb5f7686aa1baf4013c6048750c425f14059ac
parentd9489ed67edf4737ee92754a605484addec03781 (diff)
downloadnvim-f83593f430118f0499454f88cbe028c822e760a3.tar.xz
nvim-f83593f430118f0499454f88cbe028c822e760a3.zip
undotree keybind
-rw-r--r--lua/tjk/keybindings.lua2
-rw-r--r--lua/tjk/lsp.lua1
2 files changed, 3 insertions, 0 deletions
diff --git a/lua/tjk/keybindings.lua b/lua/tjk/keybindings.lua
index 7871a64..cd3b961 100644
--- a/lua/tjk/keybindings.lua
+++ b/lua/tjk/keybindings.lua
@@ -6,6 +6,8 @@ vim.g.mapleader = ","
key("n", "<leader>l", [[:setlocal spell! spelllang=en_us<CR>]])
-- toggle cursorcolumn
key("n", "<leader>c", [[:set cursorcolumn!<CR>]])
+-- show undotree
+key("n", "<leader>u", [[:Undotree<CR>]])
-- scroll doc with ctrl+[jk]
key({ "n", "v" }, "<C-j>", "<C-e>")
diff --git a/lua/tjk/lsp.lua b/lua/tjk/lsp.lua
index 118cda5..6f4c110 100644
--- a/lua/tjk/lsp.lua
+++ b/lua/tjk/lsp.lua
@@ -1,3 +1,4 @@
+-- TODO enable with keybind
vim.lsp.enable({
"cssls",
"eslint",