summaryrefslogtreecommitdiff
path: root/.config/nvim/init.vim
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2024-11-06 09:09:37 +0900
committerA Farzat <a@farzat.xyz>2024-11-13 09:13:20 +0900
commit7ec1fa7385c1b88a2efdad72c805b254c52084bd (patch)
tree2917de2bbd3552adca5dbe4989460f4b25672595 /.config/nvim/init.vim
parentcb5affa0e11c200f175e26ced4f2866aa916d2c9 (diff)
downloaddotfiles-7ec1fa7385c1b88a2efdad72c805b254c52084bd.tar.gz
dotfiles-7ec1fa7385c1b88a2efdad72c805b254c52084bd.zip
Remove nvim submodule
Nvim config will be included as bare files instead of a submodule. The nvim config repo will still exist, but the content will be used by yadm without the repo itself.
Diffstat (limited to '.config/nvim/init.vim')
-rw-r--r--.config/nvim/init.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
new file mode 100644
index 0000000..29132c3
--- /dev/null
+++ b/.config/nvim/init.vim
@@ -0,0 +1,21 @@
+" Some settings need to be made before loading the plugins.
+for fileName in globpath(stdpath("config") .. '/early-settings', '*', 0, 1)
+ execute 'source ' . fnameescape(fileName)
+endfor
+
+" Install and manage the plugins.
+source <sfile>:p:h/plugins.vim
+
+" Regular settings.
+source <sfile>:p:h/regular.vim
+
+" Global mappings.
+source <sfile>:p:h/global-mappings.vim
+
+" Plugin config.
+for fileName in globpath(stdpath("config") .. '/plugin-settings', '*', 0, 1)
+ execute 'source ' . fnameescape(fileName)
+endfor
+
+" Emmit.vim settings.
+let g:user_emmet_expandabbr_key = '<C-y>y'