Diary settings, added to alpha splash screen
This commit is contained in:
@@ -83,6 +83,7 @@ dashboard.section.header.val = vim.split(adjustedLogo, '\n')
|
||||
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button('o', ' AI Chat', '<cmd>OGPT<CR>'),
|
||||
dashboard.button('d', ' Diary Entry', '<cmd>Diary<CR>'),
|
||||
dashboard.button('n', ' New file', ':ene <BAR> startinsert <CR>'),
|
||||
dashboard.button('s', ' Settings', '<cmd>WorkspacesOpen config-nvim<CR>'),
|
||||
dashboard.button('u', ' Update plugins', '<cmd>Lazy update<CR>'),
|
||||
|
||||
@@ -14,8 +14,9 @@ local diary_open = function(opts)
|
||||
snips.snip_expand(asnippets[1])
|
||||
vim.cmd('normal! G')
|
||||
end
|
||||
snips.snip_expand(asnippets[2])
|
||||
|
||||
vim.cmd('normal! 3o') -- insert some newlines before new entry
|
||||
snips.snip_expand(asnippets[2])
|
||||
end
|
||||
|
||||
vim.api.nvim_create_user_command("Diary", diary_open, { nargs = '?' })
|
||||
|
||||
Reference in New Issue
Block a user