local uv = vim.uv or vim.loop local is_mac = uv.os_uname().sysname == "Darwin" return { "stevearc/gkeep.nvim", build = "UpdateRemotePlugins", cond = not is_mac, event = "BufReadPre gkeep://*", keys = { { "n", "GkeepToggle", desc = "[N]otes", mode = "n", }, { "", function() require("luasnip").jump(1) end, mode = "s", }, { "", function() require("luasnip").jump(-1) end, mode = { "i", "s" }, }, }, config = function() -- vim.g.gkeep_sync_dir = '~/notes' -- vim.g.gkeep_sync_archived = true vim.g.gkeep_log_levels = { gkeep = "debug", gkeepapi = "warning", } local p = require("p") local ftplugin = p.require("ftplugin") local gkeep_bindings = { { "m", "GkeepEnter menu" }, { "l", "GkeepEnter list" }, } ftplugin.set("GoogleKeepList", { keys = gkeep_bindings, }) ftplugin.set("GoogleKeepMenu", ftplugin.get("GoogleKeepList")) ftplugin.set("GoogleKeepNote", { keys = vim.list_extend({ { "p", "GkeepPopup" }, { "fl", "Telescope gkeep link" }, }, gkeep_bindings), }) ftplugin.extend("norg", { keys = gkeep_bindings }) p.require("quick_action", function(quick_action) quick_action.add("menu", { name = "Toggle Gkeep check", condition = function() return vim.bo.filetype == "GoogleKeepNote" and vim.b.note_type == "list" end, action = function() vim.cmd.GkeepCheck() end, }) end) end, }