nvim: add mind

This commit is contained in:
tastytea 2022-08-26 04:10:26 +02:00
parent 7783bb9c0d
commit 1abe12ed87
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 17 additions and 5 deletions

View File

@ -11,7 +11,7 @@ if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.cmd [[packadd packer.nvim]] vim.cmd [[packadd packer.nvim]]
end end
require('packer').startup({function(use) require('packer').startup({ function(use)
use { 'https://github.com/wbthomason/packer.nvim' } use { 'https://github.com/wbthomason/packer.nvim' }
-- settings -- settings
@ -101,6 +101,10 @@ require('packer').startup({function(use)
} }
} }
use { 'https://codeberg.org/tastytea/bug-reference.nvim' } use { 'https://codeberg.org/tastytea/bug-reference.nvim' }
use {
'https://github.com/phaazon/mind.nvim',
tag = '*'
}
-- coding -- coding
use { use {
@ -144,10 +148,11 @@ require('packer').startup({function(use)
require('packer').install() require('packer').install()
end end
end, end,
config = { config = {
git = { git = {
depth = 999999 depth = 999999
}}}) }
} })
-- source file, install and compile plugins when this file is written -- source file, install and compile plugins when this file is written
vim.api.nvim_create_augroup('config_plugins', { clear = true }) vim.api.nvim_create_augroup('config_plugins', { clear = true })

View File

@ -100,3 +100,10 @@ require('lualine').setup({
} }
}, },
}) })
local mind = require('mind')
mind.setup({})
map('n', '<C-F9>', mind.open_main, 'Open main mind')
map('n', '<F33>', mind.open_main, 'Open main mind') -- <C-F9> = <F33>
map('n', '<S-F9>', mind.open_main, 'Open main mind')
map('n', '<F21>', mind.open_project, 'Open project mind') -- <S-F9> = <F21>