diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/after/plugin/autocmds.lua | 15 | ||||
-rw-r--r-- | .config/nvim/after/plugin/autocmds.vim | 5 |
2 files changed, 5 insertions, 15 deletions
diff --git a/.config/nvim/after/plugin/autocmds.lua b/.config/nvim/after/plugin/autocmds.lua index bdfaf33..3356a49 100644 --- a/.config/nvim/after/plugin/autocmds.lua +++ b/.config/nvim/after/plugin/autocmds.lua | |||
@@ -35,21 +35,6 @@ vim.api.nvim_create_autocmd( | |||
35 | } | 35 | } |
36 | ) | 36 | ) |
37 | 37 | ||
38 | -- Set vimwiki filetype | ||
39 | vim.api.nvim_create_autocmd( | ||
40 | { | ||
41 | "BufNewFile", | ||
42 | "BufRead", | ||
43 | }, | ||
44 | { | ||
45 | pattern = "PKGBUILD", | ||
46 | callback = function() | ||
47 | local buf = vim.api.nvim_get_current_buf() | ||
48 | vim.api.nvim_set_option_value("filetype", "*.wiki", { buf = buf }) | ||
49 | end | ||
50 | } | ||
51 | ) | ||
52 | |||
53 | -- Set buku-edit filetype | 38 | -- Set buku-edit filetype |
54 | vim.api.nvim_create_autocmd( | 39 | vim.api.nvim_create_autocmd( |
55 | { | 40 | { |
diff --git a/.config/nvim/after/plugin/autocmds.vim b/.config/nvim/after/plugin/autocmds.vim index ae55046..21c7bc4 100644 --- a/.config/nvim/after/plugin/autocmds.vim +++ b/.config/nvim/after/plugin/autocmds.vim | |||
@@ -1,2 +1,7 @@ | |||
1 | " I don't know how to port this yet | 1 | " I don't know how to port this yet |
2 | autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif | 2 | autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif |
3 | |||
4 | augroup vimwiki | ||
5 | autocmd! | ||
6 | autocmd BufRead,BufNewFile *.wiki set filetype=vimwiki | ||
7 | augroup END | ||