feat(nvim): add smoothscrolling to the options if nvim nightly is present
This commit is contained in:
1 parent
8337a7847c
commit
34979e6b29
44 files changed
+243
-126
No files matched your search
@@ -0,0 +1,32 @@
|
||||
local isActive = true
|
||||
local p = require("persistence")
|
||||
|
||||
return {
|
||||
"folke/persistence.nvim",
|
||||
keys = {
|
||||
{
|
||||
"<leader>qS",
|
||||
function()
|
||||
p.save()
|
||||
vim.notify("Session saved", vim.log.levels.INFO, { title = "Persistence" })
|
||||
end,
|
||||
desc = "Save Session",
|
||||
},
|
||||
-- stylua: ignore start
|
||||
{ "<leader>qt",
|
||||
function()
|
||||
if isActive then
|
||||
p.stop()
|
||||
isActive = false
|
||||
vim.notify("Stopped session recording", vim.log.levels.INFO, { title = "Persistence" })
|
||||
else
|
||||
p.start()
|
||||
isActive = true
|
||||
vim.notify("Started session recording", vim.log.levels.INFO, { title = "Persistence" })
|
||||
end
|
||||
end,
|
||||
desc = "Toggle Current Session Recording"
|
||||
},
|
||||
-- stylua: ignore end
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user