nvim: Map <leader>v for vim-related options
This commit is contained in:
parent
e3f123c080
commit
56003fcccb
1 changed files with 16 additions and 15 deletions
|
@ -119,6 +119,22 @@ map('n', '<leader>e', ':Vifm<cr>', { desc = 'browse files' })
|
||||||
-- open current file tree with current file directory
|
-- open current file tree with current file directory
|
||||||
map('n', '<leader>E', ':Vifm getcwd()<cr>', { desc = 'browse project' })
|
map('n', '<leader>E', ':Vifm getcwd()<cr>', { desc = 'browse project' })
|
||||||
|
|
||||||
|
-- set 'v'im-related options
|
||||||
|
map('n', '<leader>vc', ':Vifm ' .. vim.fn.stdpath('config') .. '/lua<cr>',
|
||||||
|
{ desc = 'open config' })
|
||||||
|
map('n', '<leader>vh', ":lua require 'telescope.builtin'.help_tags()<cr>",
|
||||||
|
{ desc = 'help tags' })
|
||||||
|
map('n', '<leader>vH', ":lua require 'telescope.builtin'.man_pages()<cr>",
|
||||||
|
{ desc = 'man pages' })
|
||||||
|
map('n', '<leader>vC',
|
||||||
|
":lua require 'telescope.builtin'.colorscheme(require 'telescope.themes'.get_ivy())<cr>",
|
||||||
|
{ desc = 'colorschemes' })
|
||||||
|
map('n', '<leader>vl', ":Lazy<cr>", { desc = 'Lazy' })
|
||||||
|
map('n', '<leader>vm', ":Mason<cr>", { desc = 'Mason' })
|
||||||
|
-- Set vim to distraction free prose mode with F11
|
||||||
|
map('n', '<leader>vz', ':ZenMode<cr>', { silent = true })
|
||||||
|
|
||||||
|
|
||||||
-- PLUGIN: Telescope GLOBAL FUZZY FINDING
|
-- PLUGIN: Telescope GLOBAL FUZZY FINDING
|
||||||
-- buffers and files in current workdir
|
-- buffers and files in current workdir
|
||||||
map('n', '<leader>fb',
|
map('n', '<leader>fb',
|
||||||
|
@ -150,18 +166,6 @@ map('n', '<leader>fc', ":lua require 'telescope.builtin'.git_bcommits()<cr>",
|
||||||
map('n', '<leader>fl', ":lua require 'telescope.builtin'.git_commits()<cr>",
|
map('n', '<leader>fl', ":lua require 'telescope.builtin'.git_commits()<cr>",
|
||||||
{ desc = 'git commit log' })
|
{ desc = 'git commit log' })
|
||||||
|
|
||||||
-- helptags
|
|
||||||
map('n', '<leader><F1>', ":lua require 'telescope.builtin'.help_tags()<cr>",
|
|
||||||
{ desc = 'help tags' })
|
|
||||||
-- manpages
|
|
||||||
map('n', '<leader><F2>', ":lua require 'telescope.builtin'.man_pages()<cr>",
|
|
||||||
{ desc = 'man pages' })
|
|
||||||
|
|
||||||
-- colorschemes
|
|
||||||
map('n', '<leader><F8>',
|
|
||||||
":lua require 'telescope.builtin'.colorscheme(require 'telescope.themes'.get_ivy())<cr>",
|
|
||||||
{ desc = 'colorschemes' })
|
|
||||||
|
|
||||||
-- spell suggestions
|
-- spell suggestions
|
||||||
map('n', 'z=',
|
map('n', 'z=',
|
||||||
":lua require 'telescope.builtin'.spell_suggest(require 'telescope.themes'.get_ivy())<cr>")
|
":lua require 'telescope.builtin'.spell_suggest(require 'telescope.themes'.get_ivy())<cr>")
|
||||||
|
@ -181,9 +185,6 @@ map('n', '<localleader>mp', '<Plug>MarkdownPreviewToggle',
|
||||||
map('n', '<localleader>f', ':FormatLock<cr>')
|
map('n', '<localleader>f', ':FormatLock<cr>')
|
||||||
map('n', '<localleader>F', ':FormatWriteLock<cr>')
|
map('n', '<localleader>F', ':FormatWriteLock<cr>')
|
||||||
|
|
||||||
-- Enter distraction free prose mode with F11
|
|
||||||
map('n', '<F11>', ':ZenMode<cr>', { silent = true })
|
|
||||||
|
|
||||||
-- SPELL CHECKING
|
-- SPELL CHECKING
|
||||||
-- Move to the prev/next spelling error with [S ]S
|
-- Move to the prev/next spelling error with [S ]S
|
||||||
-- Move to the prev/next spelling error or suggestion with [s ]s
|
-- Move to the prev/next spelling error or suggestion with [s ]s
|
||||||
|
|
Loading…
Reference in a new issue