1
0
Fork 0

nvim: move some keymaps, fix some requires

This commit is contained in:
tastytea 2022-08-29 04:24:01 +02:00
parent 374b4ed38d
commit 17b80ed4ea
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
5 changed files with 7 additions and 6 deletions

View File

@ -47,7 +47,3 @@ require("todo-comments").setup({
after = ''
}
})
local map = require('my.functions').map
map('n', '<Leader>tt',
require("telescope._extensions.todo-comments").exports.todo,
'Display TODO comments in project')

View File

@ -86,4 +86,3 @@ map('n', '<M-.>', '<C-]>') -- follow symbol
map('n', '<M-,>', '<C-T>') -- go back to previous pos
map('v', '<Leader>f', 'gq', 'Reformat text')
map('n', '<Leader>h', ':nohlsearch<cr>', 'Stop highlighting search')
map('n', '<Leader>B', require('bug-reference').open, 'Open bug under cursor')

View File

@ -1,5 +1,4 @@
require('my/plugins')
require('my/completion')
local map = require('my.functions').map

View File

@ -1,3 +1,5 @@
require('my/plugins')
---@format disable-next
local options = {
number = true, -- line numbers

View File

@ -36,6 +36,9 @@ map('n', '<Leader>tr', t_builtin.registers, 'Registers')
map('n', '<Leader>gh', t_builtin.git_bcommits, 'History of this file')
map('n', '<F7>', t_builtin.diagnostics, 'Show diagnostics')
map('n', '<Leader>tp', telescope.extensions.projects.projects, 'Projects')
map('n', '<Leader>tt',
require("telescope._extensions.todo-comments").exports.todo,
'Display TODO comments in project')
local nerdfont_installed = require('my.functions').nerdfont_installed()
@ -94,6 +97,8 @@ require('lualine').setup({
},
})
map('n', '<Leader>B', require('bug-reference').open, 'Open bug under cursor')
local mind = require('mind')
mind.setup({})
map('n', '<C-F9>', mind.open_main, 'Open main mind')