dotfiles/config/nvim/init.vim

37 lines
780 B
VimL
Raw Permalink Normal View History

" Main configuration
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab smarttab autoindent
set mouse=
set laststatus=2
set t_Co=256
2023-01-17 12:25:23 +02:00
" stop overriding terminal bg colour
highlight Normal guibg=none
highlight NonText guibg=none
highlight Normal ctermbg=none
highlight NonText ctermbg=none
2023-01-17 12:25:23 +02:00
source $HOME/.config/nvim/plugins.vim
source $HOME/.config/nvim/keymaps.vim
2024-11-08 09:28:26 +02:00
" Set custom glsl extensions
autocmd! BufNewFile,BufRead *.effect set ft=glsl
2023-01-17 12:25:23 +02:00
" Python plugins, needed for CodeStats
let g:python3_host_prog = '/usr/bin/python'
2023-01-17 12:25:23 +02:00
" CodeStats
let g:codestats_api_key = $CODESTATS_API_KEY
lua require('treesitter')
lua require('autocomplete')
lua require('lsp')
2023-01-17 12:25:23 +02:00
" disable dfraw for text files
if did_filetype()
finish
endif
if getline(1) =~# '[a-z_]'
setfiletype dfraw
endif