From 17a56146f02031510b48e4b05b633cca7d8ccb8d Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 15 Nov 2021 20:52:17 -0600 Subject: [PATCH] Set mapleader to space, format to f --- NvChad-Confs/configs/coc_bindings.vim | 17 +++++++++-------- NvChad-Confs/init.lua | 2 ++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/NvChad-Confs/configs/coc_bindings.vim b/NvChad-Confs/configs/coc_bindings.vim index a95feb2..78a232c 100644 --- a/NvChad-Confs/configs/coc_bindings.vim +++ b/NvChad-Confs/configs/coc_bindings.vim @@ -134,6 +134,7 @@ xmap (coc-range-select) " Add `:Format` command to format current buffer. command! -nargs=0 Format :call CocAction('format') +nmap f :Format " Add `:Fold` command to fold current buffer. command! -nargs=? Fold :call CocAction('fold', ) @@ -148,18 +149,18 @@ set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} " Mappings for CoCList " Show all diagnostics. -nnoremap a :CocList diagnostics +nnoremap ,a :CocList diagnostics " Manage extensions. -nnoremap e :CocList extensions +nnoremap ,e :CocList extensions " Show commands. -nnoremap c :CocList commands +nnoremap ,c :CocList commands " Find symbol of current document. -nnoremap o :CocList outline +nnoremap ,o :CocList outline " Search workspace symbols. -nnoremap s :CocList -I symbols +nnoremap ,s :CocList -I symbols " Do default action for next item. -nnoremap j :CocNext +nnoremap ,j :CocNext " Do default action for previous item. -nnoremap k :CocPrev +nnoremap ,k :CocPrev " Resume latest coc list. -nnoremap p :CocListResume +nnoremap ,p :CocListResume diff --git a/NvChad-Confs/init.lua b/NvChad-Confs/init.lua index adfd6a2..500e388 100644 --- a/NvChad-Confs/init.lua +++ b/NvChad-Confs/init.lua @@ -1,5 +1,7 @@ local hooks = require "core.hooks" +vim.g.mapleader = " " + hooks.add("install_plugins", function(use) use { "neovim/nvim-lspconfig",