Added Zettelkasten!

This commit is contained in:
Јован Ђокић-Шумарац 2023-08-09 23:39:10 +02:00
parent b6d268cc4e
commit 88628d13a5
2 changed files with 34 additions and 8 deletions

View file

@ -13,7 +13,19 @@ local neogit = require('neogit')
-- Launch panel if nothing is typed after <leader>z
cmap("n", "<leader>z", "<cmd>Telekasten panel<CR>")
-- Most used functions
cmap("n", "<leader>zf", "<cmd>Telekasten find_notes<CR>")
cmap("n", "<leader>zg", "<cmd>Telekasten search_notes<CR>")
cmap("n", "<leader>zt", "<cmd>Telekasten goto_today<CR>")
cmap("n", "<leader>zn", "<cmd>Telekasten new_note<CR>")
cmap("n", "<leader>zc", "<cmd>Telekasten show_calendar<CR>")
cmap("n", "<leader>zb", "<cmd>Telekasten show_backlinks<CR>")
-- Call insert link automatically when we start typing a link
cmap("i", "[[", "<cmd>Telekasten insert_link<CR>")

View file

@ -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
}
},