move plugin mappings to mappings file

This commit is contained in:
Jidbo 2021-02-24 12:20:19 +01:00
parent c52bb8ac16
commit fefb7f752c
Signed by untrusted user: jidbo
GPG key ID: 54C320BF0E44C5CA
2 changed files with 26 additions and 23 deletions

View file

@ -17,3 +17,28 @@ inoremap [, [<CR>],<C-c>O
" toggle hybrid mode " toggle hybrid mode
nnoremap <leader>h :set rnu!<CR> nnoremap <leader>h :set rnu!<CR>
" nerdtree
map <leader>e :NERDTreeToggle<CR>
" fzf
nmap <C-y> :Buffers<CR>
nmap <Leader>f :GFiles<CR>
nmap <Leader>l :Lines<CR>
" vim fugitive
nnoremap <leader>gg :G<cr>
" neo formatter
nnoremap <leader>p :Neoformat<CR>
" lsp mappings
imap <silent> <c-p> <Plug>(completion_trigger)
nnoremap <silent> gd <cmd>lua vim.lsp.buf.definition()<CR>
nnoremap <silent> gh <cmd>lua vim.lsp.buf.hover()<CR>
nnoremap <silent> gH <cmd>lua vim.lsp.buf.code_action()<CR>
nnoremap <silent> gD <cmd>lua vim.lsp.buf.implementation()<CR>
nnoremap <silent> gs <cmd>lua vim.lsp.buf.signature_help()<CR>
nnoremap <silent> gr <cmd>lua vim.lsp.buf.references()<CR>
nnoremap <silent> gR <cmd>lua vim.lsp.buf.rename()<CR>

View file

@ -5,8 +5,6 @@
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
map <leader>e :NERDTreeToggle<CR>
" AIRLINE SETUP " AIRLINE SETUP
" ========================= " =========================
@ -38,15 +36,10 @@ augroup END
" FZF SETUP " FZF SETUP
" ========================= " =========================
nmap <C-y> :Buffers<CR>
nmap <Leader>f :GFiles<CR>
nmap <Leader>l :Lines<CR>
let g:fzf_buffers_jump = 1 let g:fzf_buffers_jump = 1
" VIMWIKI SETUP " VIMWIKI SETUP
" ========================= " =========================
let g:vimwiki_list = [{'path': '~/.wiki/'}] let g:vimwiki_list = [{'path': '~/.wiki/'}]
" VIMTEX SETUP " VIMTEX SETUP
@ -82,12 +75,6 @@ lua require'colorizer'.setup()
let g:tmuxcomplete#trigger = '' let g:tmuxcomplete#trigger = ''
" neo formatter
nnoremap <leader>p :Neoformat<CR>
" vim fugitive
nnoremap <leader>gg :G<cr>
" GOYO " GOYO
" ========================= " =========================
@ -111,23 +98,14 @@ let g:goyo_linenr = 0
lua require'lspconfig'.tsserver.setup{ on_attach=require'completion'.on_attach } lua require'lspconfig'.tsserver.setup{ on_attach=require'completion'.on_attach }
lua require'lspconfig'.intelephense.setup{ on_attach=require'completion'.on_attach } lua require'lspconfig'.intelephense.setup{ on_attach=require'completion'.on_attach }
lua require'lspconfig'.vuels.setup{ on_attach=require'completion'.on_attach } lua require'lspconfig'.vuels.setup{ on_attach=require'completion'.on_attach }
lua require'lspconfig'.pyls.setup{ on_attach=require'completion'.on_attach, plugins = {pycodestyle = {maxLineLength=120}} } lua require'lspconfig'.pyls.setup{ on_attach=require'completion'.on_attach }
imap <silent> <c-p> <Plug>(completion_trigger)
set completeopt=menuone,noinsert,noselect set completeopt=menuone,noinsert,noselect
set shortmess+=c set shortmess+=c
nnoremap <silent> gd <cmd>lua vim.lsp.buf.definition()<CR>
nnoremap <silent> gh <cmd>lua vim.lsp.buf.hover()<CR>
nnoremap <silent> gH <cmd>lua vim.lsp.buf.code_action()<CR>
nnoremap <silent> gD <cmd>lua vim.lsp.buf.implementation()<CR>
nnoremap <silent> gs <cmd>lua vim.lsp.buf.signature_help()<CR>
nnoremap <silent> gr <cmd>lua vim.lsp.buf.references()<CR>
nnoremap <silent> gR <cmd>lua vim.lsp.buf.rename()<CR>
" EMMET SETUP " EMMET SETUP
" ========================= " =========================
let g:user_emmet_leader_key='<C-i>' let g:user_emmet_leader_key='<C-i>'
" LANGUAGETOOL SETUP " LANGUAGETOOL SETUP