mirror of
https://github.com/mikkelsvartveit/dotfiles.git
synced 2025-12-22 19:22:38 +00:00
Add auto-session plugin for neovim & improve startup time
This commit is contained in:
parent
e470180801
commit
10ea62b6df
1 changed files with 12 additions and 4 deletions
|
|
@ -130,9 +130,12 @@ Plug 'tpope/vim-surround'
|
|||
" Github Copilot
|
||||
Plug 'github/copilot.vim'
|
||||
|
||||
" Auto-restore session when opening Neovim
|
||||
Plug 'rmagatti/auto-session'
|
||||
|
||||
" File explorer sidebar
|
||||
Plug 'kyazdani42/nvim-web-devicons'
|
||||
Plug 'kyazdani42/nvim-tree.lua'
|
||||
Plug 'kyazdani42/nvim-tree.lua', { 'commit': 'e14989c' }
|
||||
|
||||
" Fuzzy finder for files, buffers, etc. (including dependencies)
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
|
|
@ -202,9 +205,14 @@ lua require('leap').add_default_mappings()
|
|||
lua require('Comment').setup()
|
||||
|
||||
" Disable Github Copilot on launch and configure commands
|
||||
autocmd VimEnter * Copilot disable
|
||||
command! -nargs=0 CPE :Copilot enable
|
||||
command! -nargs=0 CPD :Copilot disable
|
||||
autocmd BufRead * let b:copilot_enabled = v:false
|
||||
command! -nargs=0 CPE :let b:copilot_enabled = v:true
|
||||
command! -nargs=0 CPD :let b:copilot_enabled = v:false
|
||||
|
||||
" Configure auto-session
|
||||
lua require("auto-session").setup{
|
||||
\ log_level = "error",
|
||||
\ }
|
||||
|
||||
" Configure nvim-tree
|
||||
let g:loaded_netrw = 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue