-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
30 lines (23 loc) · 876 Bytes
/
Copy pathinit.lua
File metadata and controls
30 lines (23 loc) · 876 Bytes
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
-- Set <space> as the leader key
-- NOTE: Must happen before plugins are loaded
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Assign a virtualenv for Neovim so that the `pynvim` package is not required for each virtualenv
vim.g.python3_host_prog = "/Users/enrique.perez/.virtualenvs/nvim/bin/python"
-- Nerd Font available in terminal
vim.g.have_nerd_font = true
-- Setting options
require("options")
-- Setting keymaps
require("keymaps")
-- Load plugins from lua/plugins/
for _, file in ipairs(vim.fn.glob(vim.fn.stdpath("config") .. "/lua/plugins/*.lua", false, true)) do
local name = vim.fn.fnamemodify(file, ":t:r")
require("plugins." .. name)
end
-- Statusline (after plugins so colorscheme is loaded)
require("statusline").init()
-- NOTE: Enable experimental ui2 (removes "Press ENTER" prompts)
pcall(function()
require("vim._core.ui2").enable()
end)