summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorIan Griffin <migriffin@disroot.org>2022-09-30 20:06:55 +0800
committerIan Griffin <migriffin@disroot.org>2022-09-30 20:06:55 +0800
commit0e1bf5aad478a4030f31acd8bbea874b71e42f43 (patch)
treeb31312df0273548387a613ff2f4e00bc6828b379 /init.lua
initial commit
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..e11bafe
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,37 @@
+ ----------------------------------------
+ -- --
+ -- init.lua -- --
+ ----------------------------------------
+
+--
+-- Packer, a use-package like package manager
+--
+
+-- Bootstrap
+local fn = vim.fn
+local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
+if fn.empty(fn.glob(install_path)) > 0 then
+ Packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
+end
+
+packer = require 'packer'
+packer.reset()
+packer.init()
+local pk_use = packer.use
+
+pk_use 'wbthomason/packer.nvim'
+
+if Packer_bootstrap then
+ packer.sync()
+end
+
+--
+-- Load other files
+--
+require 'ide' -- Tree Sitter Settings
+require 'ui' -- User Interface
+require 'defs' -- Default files/folders
+require 'binds' -- Keybindings and commands
+require 'misc'
+
+