(nvim) Add custom python highlighting

This commit is contained in:
Tanguy Herbron 2021-07-03 15:45:41 +02:00
parent b8f8b838a3
commit 1af3abe9c7

View File

@ -178,3 +178,12 @@ function! ToggleWrap()
endfunction
nnoremap <leader>w :call ToggleWrap()<CR>
" Python configuration, Highlight self
augroup python
autocmd!
autocmd FileType python
\ syn keyword pythonSelf self
\ | highlight def link pythonSelf Special
augroup end