2024-11-08 10:24:54 +02:00
|
|
|
" 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
|
|
|
|
2024-11-08 10:24:54 +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
|
|
|
|
2024-11-08 10:24:54 +02:00
|
|
|
source $HOME/.config/nvim/plugins.vim
|
|
|
|
source $HOME/.config/nvim/keymaps.vim
|
2024-11-08 09:28:26 +02:00
|
|
|
|
2024-11-08 09:15:36 +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
|
2023-01-18 21:14:06 +02:00
|
|
|
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
|
|
|
|
|
2024-11-08 10:24:54 +02:00
|
|
|
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
|
|
|
|
|