Mini Plugins

This commit is contained in:
Norm Rasmussen
2023-01-16 16:47:30 -05:00
parent 790795c622
commit 22aa9ed0fc
8 changed files with 184 additions and 127 deletions

View File

@ -1,6 +1,8 @@
-----------------------------------------------------------
-- Keymaps of Neovim and installed plugins.
-- Keymaps of Neovim and installed plugins
-----------------------------------------------------------
local map = vim.api.nvim_set_keymap
local default_opts = { noremap = true, silent = true }
@ -9,7 +11,7 @@ map('n', '<leader>s', ':w<CR>', default_opts)
map('n', '<leader>a', ':w|:luafile %<CR>', default_opts)
map('n', '<leader>aa', ':w|:luafile %<CR> |:PackerSync<CR>', default_opts)
map('i', '<leader>s', '<C-c>:w<CR>', default_opts)
-- Python Script that saves the file & moves Todos to my Todolist.
-- Python Script that saves the file & moves Todos to my Todolist.
map('n', '<leader>sd', ':w|:! python3 ~/Documents/Northpass/Scripts/TodoMD/todo.py %<CR>', default_opts)
-- Neovim Tab Navgation via Vem-Tabline
@ -21,6 +23,7 @@ map('n', '<leader>r', '<Plug>vem_move_buffer_right', default_opts)
map('n', '<leader>q', '<Plug>vem_move_buffer_left', default_opts)
-----------------------------------------------------------
-- Applications and Plugins shortcuts
-----------------------------------------------------------
@ -36,10 +39,12 @@ map('n', '<leader>=', ':NvimTreeResize +1<CR>', default_opts)
map('n', '<leader>-', ':NvimTreeResize -1<CR>', default_opts)
map('n', '<leader>==', ':NvimTreeResize +10<CR>', default_opts)
map('n', '<leader>--', ':NvimTreeResize -10<CR>', default_opts)
-----------------------------------------------------------
-- Telescope Keymaps
-----------------------------------------------------------
map('n', '<leader>ff', ':Telescope find_files<CR>', default_opts)
map('n', '<leader>fg', ':Telescope live_grep<CR>', default_opts)
map('n', '<leader>fb', ':Telescope buffers<CR>', default_opts)
@ -49,82 +54,82 @@ Mapper = require("nvim-mapper")
local M = Mapper.map
-- For Neovim >= 0.7.0
M(
'n', '<leader>P', ":MarkdownPreview<CR>",
{silent = true, noremap = true},
"Markdown",
"md_preview",
'n', '<leader>P', ":MarkdownPreview<CR>",
{silent = true, noremap = true},
"Markdown",
"md_preview",
"Display Markdown preview in Qutebrowser"
)
M(
'n', '<leader>fe', ":Telescope file_browser<CR>",
{silent=true, noremap=true},
"Telescope",
"telescope-file-browser",
'n', '<leader>fe', ":Telescope file_browser<CR>",
{silent=true, noremap=true},
"Telescope",
"telescope-file-browser",
"Find files and directories in telescope"
)
M(
'n', '<C-t>', "@t<CR>",
{silent=true, noremap=true},
"Todo Comments",
"todo_todo",
{silent=true, noremap=true},
"Todo Comments",
"todo_todo",
"Add To-do/Task to the beginning of the line"
)
M(
'n', '<C-s>', "@s<CR>",
'n', '<C-s>', "@s<CR>",
{silent=true, noremap=true},
"Todo Comments",
"todo_seng",
"Todo Comments",
"todo_seng",
"Add Solutions Engineering to the beginning of the line"
)
M(
'n', '<C-f>', "@f<CR>",
{silent=true, noremap=true},
"Todo Comments",
"todo_feat",
"Todo Comments",
"todo_feat",
"Add Feature Request tag to the beginning of the line. "
)
M(
'n', '<C-cx>', "@c<CR>",
{silent=true, noremap=true},
"Todo Comments",
"todo_complete",
'n', '<C-x>', "@c<CR>",
{silent=true, noremap=true},
"Todo Comments",
"todo_complete",
"Replace tag with Complete tag at beginning of the line."
)
M(
'n', '<C-w>', "@w<CR>",
'n', '<C-w>', "@w<CR>",
{silent=true, noremap=true},
"Todo Comments",
"todo_error",
"Todo Comments",
"todo_error",
"Add Warning/Error tag at the beginning of the line."
)
M(
'n', '<leader>ce', ":TodoTrouble keywords=TODO,FEAT<CR> | resize +10<CR>",
{silent=true, noremap=true},
"Show Todos",
"todo_trouble_todo",
'n', '<leader>ce', ":TodoTrouble keywords=TODO,FEAT<CR> | resize +10<CR>",
{silent=true, noremap=true},
"Show Todos",
"todo_trouble_todo",
"Show Todos from Folke's Todo Comments Plugin."
)
M(
'n', '<leader>cf', ":TodoTrouble keywords=FEAT<CR>",
{silent=true, noremap=true},
"Show Todos",
"todo_trouble_todo",
'n', '<leader>cf', ":TodoTrouble keywords=FEAT<CR>",
{silent=true, noremap=true},
"Show Todos",
"todo_trouble_todo",
"Show Feature Requests from Folke's Todo Comments Plugin."
)
M(
'n', '<leader>cq', ":TodoTrouble keywords=ERROR, WARN<CR>",
{silent=true, noremap=true},
"Show Todos",
"todo_trouble_todo",
'n', '<leader>cq', ":TodoTrouble keywords=ERROR, WARN<CR>",
{silent=true, noremap=true},
"Show Todos",
"todo_trouble_todo",
"Show Errors from Folke's Todo Comments Plugin."
)
@ -142,4 +147,4 @@ M(
"Black Cwf",
"black_current_file",
"Use Black Formatting on Current File."
)
)