summaryrefslogtreecommitdiff
path: root/init.lua
blob: 228df9d2dcc8cab3aef4d53fcc73b3dac913d724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
                    ----------------------------------------
                    --                                    --
                    --              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

local packer = require 'packer'
packer.reset()
packer.init()
local pk_use = packer.use

pk_use 'wbthomason/packer.nvim'

if Packer_bootstrap then
	packer.sync()
end

-- Leader key
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '

--
-- Load other files
--
require 'ide'  -- Tree Sitter Settings
require 'ui' -- User Interface 
require 'defs' -- Default files/folders
require 'binds' -- Keybindings and commands
require 'misc'