update keymapping

This commit is contained in:
ksyasuda 2022-11-04 18:31:27 -07:00
parent 2efde35597
commit dc397f7d60
2 changed files with 15 additions and 16 deletions

View File

@ -48,18 +48,18 @@ nmap <leader>bn :bnext<CR>
nmap <leader>bp :bprev<CR> nmap <leader>bp :bprev<CR>
nmap <leader>ca :lua vim.lsp.buf.code_action()<CR> nmap <leader>ca :lua vim.lsp.buf.code_action()<CR>
nmap <leader>cc :vert Copilot<CR>
nmap <leader>cd :Telescope diagnostics<CR> nmap <leader>cd :Telescope diagnostics<CR>
nmap <leader>cp :vert Copilot panel<CR>
nmap <leader>cs :lua require("copilot.suggestion").toggle_auto_trigger()<CR>
" nmap <leader>cl :lua vim.lsp.diagnostic.show_line_diagnostics()<CR> " nmap <leader>cl :lua vim.lsp.diagnostic.show_line_diagnostics()<CR>
nnoremap <silent> <Leader>cn :DashboardNewFile<CR> " nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
nnoremap <leader>ff :Telescope find_files<cr> nnoremap <leader>ff :Telescope find_files<cr>
nnoremap <leader>fg :Telescope live_grep<cr> nnoremap <leader>fg :Telescope live_grep<cr>
nnoremap <leader>fb :Telescope buffers<cr> nnoremap <leader>fb :Telescope buffers<cr>
nnoremap <leader>fh :Telescope help_tags<cr> " nmap <silent> <Leader>fa :DashboardFindWord<CR>
nmap <silent> <Leader>fa :DashboardFindWord<CR> " nmap <silent> <Leader>fb :DashboardJumpMark<CR>
nmap <silent> <Leader>fb :DashboardJumpMark<CR> " nmap <silent> <Leader>fh :DashboardFindHistory<CR>
nmap <silent> <Leader>fh :DashboardFindHistory<CR>
nmap <leader>gb :Gitsigns blame_line<CR> nmap <leader>gb :Gitsigns blame_line<CR>
nmap <leader>gc :Telescope git_commits<CR> nmap <leader>gc :Telescope git_commits<CR>
@ -73,7 +73,7 @@ nnoremap gpd <cmd>lua require('goto-preview').goto_preview_definition()<CR>
nnoremap gpi <cmd>lua require('goto-preview').goto_preview_implementation()<CR> nnoremap gpi <cmd>lua require('goto-preview').goto_preview_implementation()<CR>
nmap <leader>hc :Telescope commands<CR> nmap <leader>hc :Telescope commands<CR>
nmap <leader>hh :Telescope tags<CR> nnoremap <leader>hv :Telescope help_tags<cr>
nmap <leader>hk :Telescope keymaps<CR> nmap <leader>hk :Telescope keymaps<CR>
nmap <leader>hs :Telescope spell_suggest<CR> nmap <leader>hs :Telescope spell_suggest<CR>
@ -98,7 +98,8 @@ nmap <leader>lw :Telescope lsp_dynamic_workspace_symbols<CR>
nmap <leader>n :NvimTreeToggle<CR> nmap <leader>n :NvimTreeToggle<CR>
nmap <leader>ob :FloatermNew --title=bpytop --opener=vsplit bpytop<CR> nmap <leader>ob :Telescope file_browser<CR>
nmap <leader>oB :FloatermNew --title=bpytop --opener=vsplit bpytop<CR>
nmap <leader>od :FloatermNew --title=lazydocker --opener=vsplit lazydocker<CR> nmap <leader>od :FloatermNew --title=lazydocker --opener=vsplit lazydocker<CR>
nmap <leader>of :wa<CR>:FloatermToggle floatterm<CR> nmap <leader>of :wa<CR>:FloatermToggle floatterm<CR>
nmap <leader>oh :FloatermNew --title=floaterm --name=split-term --opener=edit --wintype=split --position=botright --height=0.45<CR> nmap <leader>oh :FloatermNew --title=floaterm --name=split-term --opener=edit --wintype=split --position=botright --height=0.45<CR>
@ -121,7 +122,6 @@ nmap <leader>s/ :Telescope search_history<CR>
nnoremap <silent> <Leader>tc :Telescope colorscheme<CR> nnoremap <silent> <Leader>tc :Telescope colorscheme<CR>
nmap <leader>tf :wa<CR>:FloatermToggle floatterm<CR> nmap <leader>tf :wa<CR>:FloatermToggle floatterm<CR>
nmap <leader>to :SymbolsOutline<CR>
nmap <leader>tp :FloatermToggle ipython<CR> nmap <leader>tp :FloatermToggle ipython<CR>
nmap <leader>tP :FloatermToggle ipython-full<CR> nmap <leader>tP :FloatermToggle ipython-full<CR>
nmap <leader>tt :FloatermToggle split-term<CR> nmap <leader>tt :FloatermToggle split-term<CR>

View File

@ -183,10 +183,9 @@ for _, lsp in ipairs(servers) do
} }
end end
-- cmp.event:on("menu_opened", function()
cmp.event:on("menu_opened", function() -- vim.b.copilot_suggestion_hidden = true
vim.b.copilot_suggestion_hidden = true -- end)
end) -- cmp.event:on("menu_closed", function()
cmp.event:on("menu_closed", function() -- vim.b.copilot_suggestion_hidden = false
vim.b.copilot_suggestion_hidden = false -- end)
end)