return { 'renerocksai/telekasten.nvim', dependencies = { 'nvim-telescope/telescope.nvim', 'renerocksai/calendar-vim', { 'nvim-telescope/telescope-media-files.nvim', dependencies = { 'nvim-lua/popup.nvim', 'nvim-lua/plenary.nvim', 'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope-media-files.nvim', }, }, }, config = function() require('telekasten').setup { home = vim.fn.expand("~/notes"), daily = vim.fn.expand("~/notes/daily"), weeklies = vim.fn.expand("~/notes/weeklies"), templates = vim.fn.expand("~/notes/templates"), auto_set_filetype = false, install_syntax = true, media_previewer = "telescope-media-files", } vim.cmd("hi tklink ctermfg=72 guifg=#689d6a cterm=bold,underline gui=bold,underline") vim.cmd("hi tkBrackets ctermfg=gray guifg=gray") end, keys = { { "z", 'Telekasten panel' }, { "zf", 'Telekasten find_notes' }, { "zd", 'Telekasten find_daily_notes' }, { "zg", 'Telekasten search_notes' }, { "zz", 'Telekasten follow_link' }, { "zT", 'Telekasten goto_today' }, { "zW", 'Telekasten goto_thisweek' }, { "zw", 'Telekasten find_weekly_notes' }, { "zn", 'Telekasten new_note' }, { "zN", 'Telekasten new_templated_note' }, { "zy", 'Telekasten yank_notelink' }, { "zc", 'Telekasten show_calendar' }, { "zi", 'Telekasten paste_img_and_link' }, { "zt", 'Telekasten toggle_todo' }, { "zb", 'Telekasten show_backlinks' }, { "zF", 'Telekasten find_friends' }, { "zp", 'Telekasten preview_img' }, { "zm", 'Telekasten browse_media' }, { "#", 'Telekasten show_tags' }, { "zI", function() require('telekasten').insert_img_link({ i = true }) end }, { "zt", function() require('telekasten').toggle_todo({ v = true }) end, "v" }, { "zt", function() require('telekasten').toggle_todo({ i = true }) end, "i" }, { "#", function() require('telekasten').show_tags({ i = true }) end, "i" }, -- { "[[", function() require('telekasten').insert_link({ i = true }) end, "i" }, { "zC", "CalendarT" }, }, }