1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Move ftplugin to after/ftplugin

Make my own settings have the final say on how a filetype should behave,
instead of some 3rd party plugins.
This commit is contained in:
jdhao
2021-08-09 23:04:27 +08:00
parent 69c22793e1
commit 0aa6117ffc
3 changed files with 5 additions and 4 deletions

6
after/ftplugin/qf.vim Normal file
View File

@@ -0,0 +1,6 @@
" Set quickfix window height, see also https://github.com/lervag/vimtex/issues/1127
function! AdjustWindowHeight(minheight, maxheight)
execute max([a:minheight, min([line('$'), a:maxheight])]) . 'wincmd _'
endfunction
call AdjustWindowHeight(5, 15)

View File

@@ -2,3 +2,8 @@ set tabstop=2 " number of visual spaces per TAB
set softtabstop=2 " number of spaces in tab when editing
set shiftwidth=2 " number of spaces to use for autoindent
set expandtab " expand tab to spaces so that tabs are spaces
" Turn off syntax highlighting for large YAML files.
if line('$') > 500
setlocal syntax=OFF
endif