Compare commits
No commits in common. "8b611fce5cdf128fb8763826bd03185751eb1ba5" and "3fd834c899c430d2cc5a782da23f5693828feb34" have entirely different histories.
8b611fce5c
...
3fd834c899
5 changed files with 1 additions and 30 deletions
|
@ -1,15 +0,0 @@
|
||||||
" off with <A-p>
|
|
||||||
nmap <A-p> :lua require('nvim-autopairs').disable()<CR>
|
|
||||||
" on with <A-P>
|
|
||||||
nmap <A-P> :lua require('nvim-autopairs').enable()<CR>
|
|
||||||
|
|
||||||
" fix <CR> being not usable to select a completion item
|
|
||||||
inoremap <silent><expr> <cr> coc#pum#visible() ? coc#pum#confirm() :
|
|
||||||
\ "\<C-g>u\<c-r>=v:lua.require'nvim-autopairs'.autopairs_cr()\<CR>"
|
|
||||||
|
|
||||||
lua << EOF
|
|
||||||
require("nvim-autopairs").setup {}
|
|
||||||
local Rule = require('nvim-autopairs.rule')
|
|
||||||
local npairs = require('nvim-autopairs')
|
|
||||||
npairs.add_rule(Rule("<>","<>","rs"))
|
|
||||||
EOF
|
|
|
@ -60,7 +60,6 @@ nmap <silent> gd <Plug>(coc-definition)
|
||||||
nmap <silent> gy <Plug>(coc-type-definition)
|
nmap <silent> gy <Plug>(coc-type-definition)
|
||||||
nmap <silent> gi <Plug>(coc-implementation)
|
nmap <silent> gi <Plug>(coc-implementation)
|
||||||
nmap <silent> gr <Plug>(coc-references)
|
nmap <silent> gr <Plug>(coc-references)
|
||||||
nmap <silent> gt :CocCommand fzf-preview.CocOutline<CR>
|
|
||||||
|
|
||||||
" Use leader + K to show documentation in preview window
|
" Use leader + K to show documentation in preview window
|
||||||
nnoremap <silent><leader> K :call ShowDocumentation()<CR>
|
nnoremap <silent><leader> K :call ShowDocumentation()<CR>
|
||||||
|
|
|
@ -19,9 +19,7 @@ if vim.g.started_by_firenvim == true then
|
||||||
vim.cmd('runtime common.vim')
|
vim.cmd('runtime common.vim')
|
||||||
else
|
else
|
||||||
vim.cmd('runtime common.vim')
|
vim.cmd('runtime common.vim')
|
||||||
vim.cmd('runtime plugs.vim')
|
|
||||||
vim.cmd('runtime main.vim')
|
vim.cmd('runtime main.vim')
|
||||||
vim.cmd('runtime autopairs.vim')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if os.name() == "Windows" then
|
if os.name() == "Windows" then
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
|
||||||
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } }
|
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } }
|
||||||
Plug 'windwp/nvim-autopairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
Plug 'mhinz/vim-startify'
|
Plug 'mhinz/vim-startify'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'psliwka/vim-smoothie' " scorll with STRG + d or STRG + u
|
Plug 'psliwka/vim-smoothie' " scorll with STRG + d or STRG + u
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
local utils = {}
|
|
||||||
|
|
||||||
function M.map(mode, lhs, rhs, opts)
|
|
||||||
local options = { noremap = true }
|
|
||||||
if opts then
|
|
||||||
options = vim.tbl_extend("force", options, opts)
|
|
||||||
end
|
|
||||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
|
||||||
end
|
|
||||||
|
|
||||||
return utils
|
|
Loading…
Add table
Reference in a new issue