From 88628d13a53a9bebff1cc53d73501381a5500f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=88=D0=BE=D0=B2=D0=B0=D0=BD=20=D0=82=D0=BE=D0=BA=D0=B8?= =?UTF-8?q?=D1=9B-=D0=A8=D1=83=D0=BC=D0=B0=D1=80=D0=B0=D1=86?= Date: Wed, 9 Aug 2023 23:39:10 +0200 Subject: [PATCH] Added Zettelkasten! --- lua/options/keybind.lua | 12 ++++++++++++ lua/plugins/lazy.lua | 30 ++++++++++++++++++++++-------- 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/lua/options/keybind.lua b/lua/options/keybind.lua index b2bef46..00bd523 100644 --- a/lua/options/keybind.lua +++ b/lua/options/keybind.lua @@ -13,7 +13,19 @@ local neogit = require('neogit') +-- Launch panel if nothing is typed after z +cmap("n", "z", "Telekasten panel") +-- Most used functions +cmap("n", "zf", "Telekasten find_notes") +cmap("n", "zg", "Telekasten search_notes") +cmap("n", "zt", "Telekasten goto_today") +cmap("n", "zn", "Telekasten new_note") +cmap("n", "zc", "Telekasten show_calendar") +cmap("n", "zb", "Telekasten show_backlinks") + +-- Call insert link automatically when we start typing a link +cmap("i", "[[", "Telekasten insert_link") diff --git a/lua/plugins/lazy.lua b/lua/plugins/lazy.lua index 85a9736..741f5a8 100644 --- a/lua/plugins/lazy.lua +++ b/lua/plugins/lazy.lua @@ -23,6 +23,20 @@ require("lazy").setup({ -- colorscheme "EdenEast/nightfox.nvim", + -- Journaling and notes! with a calendar ! + { + "renerocksai/telekasten.nvim", + dependencies = { + "nvim-telescope/telescope.nvim", + "renerocksai/calendar-vim" + }, + config = function () + require("telekasten").setup({ + home = vim.fn.expand("~/zettelkasten"), -- Put the name of your notes directory here + }) + end + }, + -- Focus more ! "folke/twilight.nvim", "folke/zen-mode.nvim", @@ -137,7 +151,7 @@ require("lazy").setup({ -- size does not matter { - 'echasnovski/mini.nvim', + "echasnovski/mini.nvim", version = false, }, @@ -171,18 +185,18 @@ require("lazy").setup({ -- this is pure magic, i love this guy { - 'VonHeikemen/lsp-zero.nvim', + "VonHeikemen/lsp-zero.nvim", branch = 'v2.x', dependencies = { -- LSP Support - {'neovim/nvim-lspconfig'}, -- Required - {'williamboman/mason.nvim'}, -- Optional - {'williamboman/mason-lspconfig.nvim'}, -- Optional + {"neovim/nvim-lspconfig"}, -- Required + {"williamboman/mason.nvim"}, -- Optional + {"williamboman/mason-lspconfig.nvim"}, -- Optional -- Autocompletion - {'hrsh7th/nvim-cmp'}, -- Required - {'hrsh7th/cmp-nvim-lsp'}, -- Required - {'L3MON4D3/LuaSnip'}, -- Required + {"hrsh7th/nvim-cmp"}, -- Required + {"hrsh7th/cmp-nvim-lsp"}, -- Required + {"L3MON4D3/LuaSnip"}, -- Required } },