summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/after/plugin/autocmds.lua17
-rw-r--r--.config/nvim/after/plugin/autocmds.vim5
2 files changed, 7 insertions, 15 deletions
diff --git a/.config/nvim/after/plugin/autocmds.lua b/.config/nvim/after/plugin/autocmds.lua
index 3751cd4..3356a49 100644
--- a/.config/nvim/after/plugin/autocmds.lua
+++ b/.config/nvim/after/plugin/autocmds.lua
@@ -1,3 +1,5 @@
1-- https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
2
1local function augroup(name) 3local function augroup(name)
2 return vim.api.nvim_create_augroup("lazyvim_" .. name, { clear = true }) 4 return vim.api.nvim_create_augroup("lazyvim_" .. name, { clear = true })
3end 5end
@@ -33,21 +35,6 @@ vim.api.nvim_create_autocmd(
33 } 35 }
34) 36)
35 37
36-- Set vimwiki filetype
37vim.api.nvim_create_autocmd(
38 {
39 "BufNewFile",
40 "BufRead",
41 },
42 {
43 pattern = "PKGBUILD",
44 callback = function()
45 local buf = vim.api.nvim_get_current_buf()
46 vim.api.nvim_set_option_value("filetype", "*.wiki", { buf = buf })
47 end
48 }
49)
50
51-- Set buku-edit filetype 38-- Set buku-edit filetype
52vim.api.nvim_create_autocmd( 39vim.api.nvim_create_autocmd(
53 { 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
2autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif 2autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif
3
4augroup vimwiki
5 autocmd!
6 autocmd BufRead,BufNewFile *.wiki set filetype=vimwiki
7augroup END