This commit is contained in:
veypi 2022-04-22 18:25:01 +08:00
parent ac027655e9
commit 890bd09c49
3 changed files with 15 additions and 6 deletions

View File

@ -44,7 +44,10 @@ return require('packer').startup(function()
'nvim-telescope/telescope.nvim',
requires = { { 'nvim-lua/plenary.nvim' } }
}
use {"akinsho/toggleterm.nvim"}
use "Pocco81/AutoSave.nvim"
use 'lewis6991/gitsigns.nvim'

View File

@ -2,8 +2,9 @@ require('Comment').setup()
require('nvim-autopairs').setup()
require("toggleterm").setup {
open_mapping = [[<F1>]],
open_mapping = [[<C-\>]],
hide_numbers = true,
insert_mappings = true, -- whether or not the open mapping applies in insert mode
terminal_mappings = true,

View File

@ -69,5 +69,10 @@ nnoremap <F2> :NvimTreeToggle<CR>
" telescope
nnoremap sf <cmd>Telescope find_files<cr>
nnoremap sw <cmd>Telescope live_grep<cr>
nnoremap sf <cmd>Telescope find_files<CR>
nnoremap sw <cmd>Telescope live_grep<CR>
" 禁用f1
" map <F1> <Nop>
map <F1> :ToggleTerm<CR>