Add file manager and nice git plugin

This commit is contained in:
Szwendacz99 2022-10-06 14:01:05 +02:00
parent 0b30615433
commit f984b644f3
3 changed files with 34 additions and 3 deletions

View file

@ -98,5 +98,11 @@
"javascript"
]
},
"languageserver": {}
"languageserver": {
"bash": {
"command": "bash-language-server",
"args": ["start"],
"filetypes": ["sh"]
}
}
}

View file

@ -1,7 +1,8 @@
call plug#begin()
" TODO
" Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
" NERDTree stuff
Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons
Plug 'kyazdani42/nvim-tree.lua'
Plug 'scrooloose/nerdtree'
Plug 'dracula/vim'
@ -9,6 +10,7 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdcommenter'
Plug 'mhinz/vim-startify'
Plug 'rmagatti/auto-session'
Plug 'tpope/vim-fugitive'
"Fuzzy search by Telescope and its dependencies:
Plug 'nvim-lua/plenary.nvim'
@ -26,6 +28,11 @@ lua require("general")
"<C> : represents Control key
"<A> : Alt key
"nerdtree bindings
nnoremap <leader>n :NvimTreeFocus<CR>
nnoremap <C-t> :NvimTreeToggle<CR>
nnoremap <C-e> :NvimTreeFindFile<CR>
" nerdcommenter custom bindings
nmap <C-_> <plug>NERDCommenterToggle
vmap <C-_> <plug>NERDCommenterToggle
@ -93,6 +100,7 @@ else
endif
" general configs
set encoding=UTF-8
set showmatch " show matching
set ignorecase " case insensitive
"set mouse=v " middle-click paste with

View file

@ -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,
},
})