From 1abe12ed8786a653e07e11dfcb55eba98ea84d17 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 26 Aug 2022 04:10:26 +0200 Subject: [PATCH] nvim: add mind --- .config/nvim/lua/my/plugins.lua | 15 ++++++++++----- .config/nvim/lua/my/tools.lua | 7 +++++++ 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lua/my/plugins.lua b/.config/nvim/lua/my/plugins.lua index bde814d..244b723 100644 --- a/.config/nvim/lua/my/plugins.lua +++ b/.config/nvim/lua/my/plugins.lua @@ -11,7 +11,7 @@ if vim.fn.empty(vim.fn.glob(install_path)) > 0 then vim.cmd [[packadd packer.nvim]] end -require('packer').startup({function(use) +require('packer').startup({ function(use) use { 'https://github.com/wbthomason/packer.nvim' } -- settings @@ -101,6 +101,10 @@ require('packer').startup({function(use) } } use { 'https://codeberg.org/tastytea/bug-reference.nvim' } + use { + 'https://github.com/phaazon/mind.nvim', + tag = '*' + } -- coding use { @@ -144,10 +148,11 @@ require('packer').startup({function(use) require('packer').install() end end, -config = { - git = { - depth = 999999 - }}}) + config = { + git = { + depth = 999999 + } + } }) -- source file, install and compile plugins when this file is written vim.api.nvim_create_augroup('config_plugins', { clear = true }) diff --git a/.config/nvim/lua/my/tools.lua b/.config/nvim/lua/my/tools.lua index e3fe5e8..07b20f3 100644 --- a/.config/nvim/lua/my/tools.lua +++ b/.config/nvim/lua/my/tools.lua @@ -100,3 +100,10 @@ require('lualine').setup({ } }, }) + +local mind = require('mind') +mind.setup({}) +map('n', '', mind.open_main, 'Open main mind') +map('n', '', mind.open_main, 'Open main mind') -- = +map('n', '', mind.open_main, 'Open main mind') +map('n', '', mind.open_project, 'Open project mind') -- =