1
1
Fork 0
dotfiles/.config/nvim/init.vim

26 lines
757 B
VimL

set number
syntax on
set expandtab shiftwidth=4 tabstop=4
set autoindent
set clipboard=unnamedplus
" Plugins with vim-plug
call plug#begin('~/.vim/plugged')
Plug 'psf/black', { 'do': ':!pip install black' }
Plug 'dense-analysis/ale' " For linting and format-on-save
Plug 'vim-python/python-syntax' " Improved Python syntax highlighting
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Fuzzy finder
Plug 'junegunn/fzf.vim'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " Better syntax
call plug#end()
" Enable ALE for linting and formatting
let g:ale_fix_on_save = 1
let g:ale_linters = { 'python': ['flake8'] }
let g:ale_fixers = { 'python': ['black'] }
" Keybindings
nnoremap <leader>f :Files<CR> " Fuzzy file search