diff --git a/coc-settings.json b/coc-settings.json index e241048..aa484f8 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -98,5 +98,11 @@ "javascript" ] }, - "languageserver": {} + "languageserver": { + "bash": { + "command": "bash-language-server", + "args": ["start"], + "filetypes": ["sh"] + } +} } diff --git a/init.vim b/init.vim index 44e5c85..1791f00 100644 --- a/init.vim +++ b/init.vim @@ -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") " : represents Control key " : Alt key +"nerdtree bindings +nnoremap n :NvimTreeFocus +nnoremap :NvimTreeToggle +nnoremap :NvimTreeFindFile + " nerdcommenter custom bindings nmap NERDCommenterToggle vmap 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 diff --git a/lua/general.lua b/lua/general.lua index e69de29..00dc7a1 100644 --- a/lua/general.lua +++ b/lua/general.lua @@ -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, + }, +})