e956ca8
Branches > main > e956ca8 > files / nvim / lua / lsp.lua
Update Smart n
Commit: e956ca815e5356e6997f42c75c62d4502154a14a
Parent: 4d3a32c
1 changed file:
nvim/lua/smart_n.lua view file
@@ -52,9 +52,8 @@ -- vim.keymap.set({"n", "v", "o"}, "n", function() return smart_n(false) end, {expr = true, noremap = true}) -- vim.keymap.set({"n", "v", "o"}, "N", function() return smart_n(true) end, {expr = true, noremap = true}) ---- Or lazily from another file--- vim.keymap.set({"n", "v", "o"}, "n", function() return require("smart_n").smart_n(false) end, {expr = true, noremap = true})--- vim.keymap.set({"n", "v", "o"}, "N", function() return require("smart_n").smart_n(true) end, {expr = true, noremap = true})+--- As this keeps track of what you're doing, this file should be required before you're actually moving around+--- You can defer it from first paint though. return {smart_n = smart_n, not_smart_n = not_smart_n}