let mapleader=" " set mouse=a set number set relativenumber set autoindent set smarttab set ignorecase set smartcase set termguicolors syntax on " Autocompletion set wildmode=longest,list,full " Fix splitting set splitbelow splitright "Tab settings set expandtab set shiftwidth=2 set softtabstop=2 set tabstop=2 set clipboard+=unnamedplus call plug#begin() Plug 'preservim/nerdtree' Plug 'ap/vim-css-color' Plug 'rafi/awesome-vim-colorschemes' Plug 'ryanoasis/vim-devicons' Plug 'mattn/emmet-vim' Plug 'norcalli/nvim-colorizer.lua' Plug 'tomasiser/vim-code-dark' Plug 'lukas-reineke/indent-blankline.nvim' Plug 'vimwiki/vimwiki' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'numToStr/Comment.nvim' Plug 'jiangmiao/auto-pairs' Plug 'Mofiqul/dracula.nvim' Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' Plug 'lewis6991/gitsigns.nvim' Plug 'nvim-lualine/lualine.nvim' " If you want to have icons in your statusline choose one of these Plug 'kyazdani42/nvim-web-devicons' call plug#end() colorscheme dracula set cursorline set cursorcolumn highlight CursorLine ctermbg=Yellow cterm=bold guibg=#2b2b2b highlight CursorColumn ctermbg=Yellow cterm=bold guibg=#2b2b2b nnoremap :NERDTreeToggle " Verticaly center document when entering insert mode autocmd InsertEnter * norm zz " Remove trailing whitespace on save autocmd BufWritePre * %s/\s\+$//e " Enable Disable auto comment map c :setlocal formatoptions-=cro map C :setlocal formatoptions=cro " Enable spell checking, s for spell check map s :setlocal spell! spelllang=en_us " Enable Disable auto indent map i :setlocal autoindent map I :setlocal noautoindent " Shortcutting split navigation map h map j map k map l " Moving line up or down by one line nmap :m -2 nmap :m -2 nmap :m +1 nmap :m +1 " Alias replace all to S nnoremap S :%s//gI " Use tab for trigger completion with characters ahead and navigate. inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : \ coc#refresh() inoremap pumvisible() ? "\" : "\" function! s:check_back_space() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~# '\s' endfunction " Use to trigger completion. if has('nvim') inoremap coc#refresh() else inoremap coc#refresh() endif lua << END require('Comment').setup() require('lualine').setup { options = { icons_enabled = true, theme = 'dracula', component_separators = { left = '', right = ''}, section_separators = { left = '', right = ''}, disabled_filetypes = {}, always_divide_middle = true, globalstatus = false, }, sections = { lualine_a = {'mode'}, lualine_b = {'branch', 'diff', 'diagnostics'}, lualine_c = {'filename'}, lualine_x = {'encoding', 'fileformat', 'filetype'}, lualine_y = {'progress'}, lualine_z = {'location'} }, inactive_sections = { lualine_a = {}, lualine_b = {}, lualine_c = {'filename'}, lualine_x = {'location'}, lualine_y = {}, lualine_z = {} }, tabline = {}, extensions = {} } END