Mini Plugins
This commit is contained in:
@ -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."
|
||||
)
|
||||
)
|
||||
|
||||
@ -42,8 +42,8 @@ dashboard.section.header.val = banner
|
||||
-- Menu
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button('e', ' New file', ':ene <BAR> startinsert<CR>'),
|
||||
dashboard.button('f', ' Find file', ':NvimTreeOpen<CR>'),
|
||||
dashboard.button('s', ' Settings', ':e $MYVIMRC<CR>'),
|
||||
dashboard.button('f', ' Find file', ':Telescope file_browser<CR>'),
|
||||
dashboard.button('s', '⋅ Find Word', ':Telescope live_grep<CR>'),
|
||||
dashboard.button('u', ' Update plugins', ':PackerUpdate<CR>'),
|
||||
dashboard.button('q', ' Quit', ':qa<CR>'),
|
||||
}
|
||||
|
||||
@ -4,13 +4,13 @@ cmd [[packadd packer.nvim]]
|
||||
return require'packer'.startup(function()
|
||||
-- Needed to run Packer, it can run itself
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
|
||||
-- Wakatime Tracking
|
||||
use 'wakatime/vim-wakatime'
|
||||
|
||||
----------------------------------------------------------------
|
||||
-- LSP and Autocomplete Plugins
|
||||
-- They should be pulled first!
|
||||
-- LSP and Autocomplete Plugins
|
||||
-- They should be pulled first!
|
||||
-----------------------------------------------------------------
|
||||
|
||||
-- Easy Way to install Language Servers
|
||||
@ -21,7 +21,7 @@ return require'packer'.startup(function()
|
||||
}
|
||||
use 'williamboman/mason-lspconfig.nvim'
|
||||
use 'neovim/nvim-lspconfig'
|
||||
|
||||
|
||||
-- Manage all your Keymaps!
|
||||
use {
|
||||
"lazytanuki/nvim-mapper",
|
||||
@ -45,11 +45,11 @@ return require'packer'.startup(function()
|
||||
'f3fora/cmp-spell',
|
||||
}
|
||||
}
|
||||
use ({
|
||||
'L3MON4D3/LuaSnip', tag = "v1.1.0",
|
||||
use ({
|
||||
'L3MON4D3/LuaSnip', tag = "v1.1.0",
|
||||
wants = { "friendly-snippets", "vim-snippets" },
|
||||
})
|
||||
|
||||
|
||||
-- Treesitter interface
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
@ -67,9 +67,9 @@ return require'packer'.startup(function()
|
||||
requires = { "nvim-lua/plenary.nvim" },
|
||||
})
|
||||
------------------------------------------------------------
|
||||
-- General Functionality
|
||||
-- General Functionality
|
||||
------------------------------------------------------------
|
||||
|
||||
|
||||
-- Tmux Navigation
|
||||
use({
|
||||
"aserowy/tmux.nvim",
|
||||
@ -77,17 +77,17 @@ return require'packer'.startup(function()
|
||||
})
|
||||
-- Find & Search LSP Tags
|
||||
use 'liuchengxu/vista.vim'
|
||||
|
||||
|
||||
-- Snippets
|
||||
use 'rafamadriz/friendly-snippets'
|
||||
|
||||
|
||||
-- Rename and Work with Buffer & Tabs
|
||||
use 'pacha/vem-tabline'
|
||||
|
||||
|
||||
-- Nvim Tree File Manager on the Left
|
||||
use 'nvim-tree/nvim-tree.lua'
|
||||
|
||||
-- Trouble Shows Errors with Files.
|
||||
-- Trouble Shows Errors with Files.
|
||||
use {
|
||||
"folke/trouble.nvim",
|
||||
requires = "nvim-tree/nvim-web-devicons",
|
||||
@ -98,14 +98,14 @@ return require'packer'.startup(function()
|
||||
}
|
||||
|
||||
-- Close your brackets easily
|
||||
use {
|
||||
'windwp/nvim-autopairs',
|
||||
config = function()
|
||||
require('nvim-autopairs').setup({
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
-- use {
|
||||
-- 'windwp/nvim-autopairs',
|
||||
-- config = function()
|
||||
-- require('nvim-autopairs').setup({
|
||||
-- })
|
||||
-- end
|
||||
-- }
|
||||
|
||||
-- Which Key
|
||||
use {
|
||||
"folke/which-key.nvim",
|
||||
@ -115,10 +115,39 @@ return require'packer'.startup(function()
|
||||
end
|
||||
}
|
||||
|
||||
-- Top Right Notify Pop Up
|
||||
use 'rcarriga/nvim-notify'
|
||||
|
||||
|
||||
-- echasnovski Mini Modules (Selected)
|
||||
use {
|
||||
'echasnovski/mini.move',
|
||||
config = function()
|
||||
require('mini.move').setup({
|
||||
mappings = {
|
||||
left = '<S-left>',
|
||||
right = '<S-right>',
|
||||
down = '<S-down>',
|
||||
up = '<S-up>',
|
||||
|
||||
line_left = '<S-left>',
|
||||
line_right = '<S-right>',
|
||||
line_down = '<S-down>',
|
||||
line_up = '<S-up>',
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
use 'echasnovski/mini.trailspace'
|
||||
use 'echasnovski/mini.pairs'
|
||||
use {
|
||||
'echasnovski/mini.fuzzy', branch = 'stable',
|
||||
config = function()
|
||||
require('mini.fuzzy').setup()
|
||||
end
|
||||
}
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- Markdown Plugins
|
||||
-- Markdown Plugins
|
||||
------------------------------------------------------------
|
||||
|
||||
use({
|
||||
@ -137,35 +166,21 @@ return require'packer'.startup(function()
|
||||
})
|
||||
end
|
||||
})
|
||||
-- Headlines Extension
|
||||
--use 'lukas-reineke/headlines.nvim'
|
||||
|
||||
-- Follow MD Links
|
||||
--use 'jghauser/follow-md-links.nvim'
|
||||
|
||||
|
||||
-- Markdown Preview
|
||||
-- use({
|
||||
-- "iamcco/markdown-preview.nvim",
|
||||
-- run = function() vim.fn["mkdp#util#install"]() end,
|
||||
--})
|
||||
use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install", setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
|
||||
|
||||
|
||||
-- use 'chentoast/marks.nvim'
|
||||
|
||||
-- Prettier Plugin for Neovim specifically
|
||||
use'MunifTanjim/prettier.nvim'
|
||||
|
||||
|
||||
---------------------------------------------------------
|
||||
-- Text, Icons, Symbols
|
||||
-- Text, Icons, Symbols
|
||||
----------------------------------------------------------
|
||||
use 'lukas-reineke/indent-blankline.nvim'
|
||||
|
||||
|
||||
use 'simrat39/symbols-outline.nvim'
|
||||
|
||||
|
||||
use 'nvim-tree/nvim-web-devicons'
|
||||
|
||||
|
||||
use 'folke/lsp-colors.nvim'
|
||||
|
||||
use 'karb94/neoscroll.nvim'
|
||||
@ -211,14 +226,17 @@ use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install", setup = fun
|
||||
-- The all famous telescope
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.0',
|
||||
requires = 'nvim-lua/plenary.nvim',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-telescope/telescope-live-grep-args.nvim',
|
||||
},
|
||||
config = function()
|
||||
require("telescope").setup({
|
||||
})
|
||||
end
|
||||
}
|
||||
use {
|
||||
"nvim-telescope/telescope-file-browser.nvim"
|
||||
use {
|
||||
"nvim-telescope/telescope-file-browser.nvim"
|
||||
}
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
@ -10,7 +10,7 @@ local telescope_installer = require('telescope').setup({
|
||||
["<C-c>"] = fb_actions.create
|
||||
},
|
||||
["n"] = {
|
||||
|
||||
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -19,3 +19,4 @@ local telescope_installer = require('telescope').setup({
|
||||
|
||||
require("telescope").load_extension "file_browser"
|
||||
require("telescope").load_extension "mapper"
|
||||
require("telescope").load_extension "live_grep_args"
|
||||
|
||||
@ -26,7 +26,7 @@ opt.cursorline = true
|
||||
g.markdown_folding = 1
|
||||
opt.spell=true
|
||||
opt.spelllang = 'en_us'
|
||||
cmd [[ autocmd FileType md autocmd BufWritePre * :%s/\s\+$//e ]]
|
||||
cmd [[ autocmd BufWritePre * :%s/\s\+$//e ]]
|
||||
-----------------------------------------------------------
|
||||
-- Neovim UI
|
||||
-----------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user