diff options
author | Yigit Sever | 2024-11-26 15:39:04 +0100 |
---|---|---|
committer | Yigit Sever | 2024-11-26 15:39:04 +0100 |
commit | b4e1ac3b68c70483e454b09124ebabc77cae9878 (patch) | |
tree | 7efb3eb0d112bf086e5d523f053a277db0770b7e /.config/nvim/after/plugin/autocmds.lua | |
parent | bac910773a0e4dff87257d4a08bef077641a2eca (diff) | |
download | dotfiles-b4e1ac3b68c70483e454b09124ebabc77cae9878.tar.gz dotfiles-b4e1ac3b68c70483e454b09124ebabc77cae9878.tar.bz2 dotfiles-b4e1ac3b68c70483e454b09124ebabc77cae9878.zip |
nvim: set vimwiki in vim autocmds
Diffstat (limited to '.config/nvim/after/plugin/autocmds.lua')
-rw-r--r-- | .config/nvim/after/plugin/autocmds.lua | 15 |
1 files changed, 0 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 | { |