mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
feat(nvim): add legendary and dressing plugins for easy access to keymaps, commands and autocommands
This commit is contained in:
7
nvim/after/plugin/dressing.lua
Normal file
7
nvim/after/plugin/dressing.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
-- https://github.com/stevearc/dressing.nvim
|
||||
local status, dressing = pcall(require, "dressing")
|
||||
if not status then
|
||||
return
|
||||
end
|
||||
|
||||
dressing.setup()
|
||||
13
nvim/after/plugin/legendary.lua
Normal file
13
nvim/after/plugin/legendary.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
-- https://github.com/mrjones2014/legendary.nvim
|
||||
local status, legendary = pcall(require, "legendary")
|
||||
if not status then
|
||||
return
|
||||
end
|
||||
|
||||
local keymap = vim.keymap.set
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
legendary.setup({ which_key = { auto_register = true } })
|
||||
|
||||
-- Keymaps
|
||||
keymap("n", "LL", "<CMD>Legendary<CR>", opts)
|
||||
@@ -148,3 +148,6 @@ keymap("x", "al", ":<c-u>normal! $v0<CR>", opts)
|
||||
|
||||
-- LSP formatting
|
||||
keymap("n", "<leader>o", "<cmd>lua vim.lsp.buf.format()<CR>", opts)
|
||||
|
||||
-- Manual Prettier
|
||||
keymap("n", "<leader>P", "<cmd>Prettier<CR>", opts)
|
||||
|
||||
@@ -125,6 +125,7 @@ return packer.startup(function(use)
|
||||
use("antoinemadec/FixCursorHold.nvim") -- This is needed to fix lsp doc highlight
|
||||
use("MattesGroeger/vim-bookmarks") -- Bookmarks
|
||||
use("folke/which-key.nvim") -- Display possible keybindings
|
||||
use("mrjones2014/legendary.nvim") -- Legend for keymaps, commands, and autocommands
|
||||
use("karb94/neoscroll.nvim") -- Smooth scrolling
|
||||
use("APZelos/blamer.nvim") -- Git Blame
|
||||
use("tpope/vim-fugitive") -- Git plugin
|
||||
@@ -133,6 +134,7 @@ return packer.startup(function(use)
|
||||
use("ruanyl/vim-gh-line") -- Open current line in GitHub
|
||||
use("pwntester/octo.nvim") -- GitHub in Neovim
|
||||
use("nvim-pack/nvim-spectre") -- Search and replace
|
||||
use("stevearc/dressing.nvim") -- Improve the default vim.ui interfaces
|
||||
use("folke/zen-mode.nvim") -- Zen Mode (2)
|
||||
use("tpope/vim-eunuch") -- UNIX Shell commands
|
||||
use("folke/twilight.nvim") -- Dim inactive code
|
||||
|
||||
Reference in New Issue
Block a user