Add file manager and nice git plugin
This commit is contained in:
parent
0b30615433
commit
f984b644f3
3 changed files with 34 additions and 3 deletions
|
@ -98,5 +98,11 @@
|
||||||
"javascript"
|
"javascript"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"languageserver": {}
|
"languageserver": {
|
||||||
|
"bash": {
|
||||||
|
"command": "bash-language-server",
|
||||||
|
"args": ["start"],
|
||||||
|
"filetypes": ["sh"]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
12
init.vim
12
init.vim
|
@ -1,7 +1,8 @@
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
|
||||||
" TODO
|
" NERDTree stuff
|
||||||
" Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons
|
||||||
|
Plug 'kyazdani42/nvim-tree.lua'
|
||||||
|
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
Plug 'dracula/vim'
|
Plug 'dracula/vim'
|
||||||
|
@ -9,6 +10,7 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'preservim/nerdcommenter'
|
Plug 'preservim/nerdcommenter'
|
||||||
Plug 'mhinz/vim-startify'
|
Plug 'mhinz/vim-startify'
|
||||||
Plug 'rmagatti/auto-session'
|
Plug 'rmagatti/auto-session'
|
||||||
|
Plug 'tpope/vim-fugitive'
|
||||||
|
|
||||||
"Fuzzy search by Telescope and its dependencies:
|
"Fuzzy search by Telescope and its dependencies:
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
Plug 'nvim-lua/plenary.nvim'
|
||||||
|
@ -26,6 +28,11 @@ lua require("general")
|
||||||
"<C> : represents Control key
|
"<C> : represents Control key
|
||||||
"<A> : Alt key
|
"<A> : Alt key
|
||||||
|
|
||||||
|
"nerdtree bindings
|
||||||
|
nnoremap <leader>n :NvimTreeFocus<CR>
|
||||||
|
nnoremap <C-t> :NvimTreeToggle<CR>
|
||||||
|
nnoremap <C-e> :NvimTreeFindFile<CR>
|
||||||
|
|
||||||
" nerdcommenter custom bindings
|
" nerdcommenter custom bindings
|
||||||
nmap <C-_> <plug>NERDCommenterToggle
|
nmap <C-_> <plug>NERDCommenterToggle
|
||||||
vmap <C-_> <plug>NERDCommenterToggle
|
vmap <C-_> <plug>NERDCommenterToggle
|
||||||
|
@ -93,6 +100,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" general configs
|
" general configs
|
||||||
|
set encoding=UTF-8
|
||||||
set showmatch " show matching
|
set showmatch " show matching
|
||||||
set ignorecase " case insensitive
|
set ignorecase " case insensitive
|
||||||
"set mouse=v " middle-click paste with
|
"set mouse=v " middle-click paste with
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
-- disable netrw at the very start of your init.lua (strongly advised)
|
||||||
|
vim.g.loaded = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
|
||||||
|
-- OR setup with some options
|
||||||
|
require("nvim-tree").setup({
|
||||||
|
sort_by = "case_sensitive",
|
||||||
|
view = {
|
||||||
|
adaptive_size = true,
|
||||||
|
},
|
||||||
|
renderer = {
|
||||||
|
group_empty = true,
|
||||||
|
},
|
||||||
|
filters = {
|
||||||
|
dotfiles = true,
|
||||||
|
},
|
||||||
|
})
|
Loading…
Reference in a new issue