aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2018-07-19 14:09:22 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2018-07-19 14:09:22 +0200
commitb9aa50816bef14a45083fd2cc4a789bb65d002da (patch)
tree35cf6b6801e7febd0dd74c81b861e5a97d45c398
parent356ab513f1f36381f163ca514f97385a8413bd5d (diff)
downloaddotfiles-b9aa50816bef14a45083fd2cc4a789bb65d002da.tar.xz
nvim: Move filetype.vim into init.vim
It's too short for it to make sense to split them up Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--nvim/filetype.vim4
-rw-r--r--nvim/init.vim9
2 files changed, 8 insertions, 5 deletions
diff --git a/nvim/filetype.vim b/nvim/filetype.vim
deleted file mode 100644
index caf53f7..0000000
--- a/nvim/filetype.vim
+++ /dev/null
@@ -1,4 +0,0 @@
-augroup filetypedetect
- autocmd BufRead,BufNewFile *mutt-* setfiletype mail
- autocmd BufRead,BufNewFile *.h setfiletype c
-augroup END
diff --git a/nvim/init.vim b/nvim/init.vim
index 76e25df..6a1d295 100644
--- a/nvim/init.vim
+++ b/nvim/init.vim
@@ -98,7 +98,6 @@ nmap <C-j> gj
nmap <C-k> gk
-
"""
" CtrlP
"
@@ -113,6 +112,14 @@ noremap <silent> <Leader>px :Denite buffer file_mru file_rec<CR>
noremap <silent> <Leader>pg :Denite grep<CR>
+"""
+" Filetypes
+"
+augroup filetypedetect
+ autocmd BufRead,BufNewFile *mutt-* setfiletype mail
+ autocmd BufRead,BufNewFile *.h setfiletype c
+augroup END
+
" Horrible hack to work-around weird corrupted lines on window resize
" https://github.com/neovim/neovim/issues/7861