-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
46 lines (40 loc) · 1.42 KB
/
init.lua
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
45
46
-- This neovim configuration was created using kickstart.nvim as a starting template
-- Kickstart neovim configuration: https://github.com/nvim-lua/kickstart.nvim/blob/master/init.lua
-- Commit: d8b3b774bb642a9bdb2930f2ef0dd09e29a2f00c
-- https://neovim.io/doc/user/lua.html#vim.loader
-- Enabled experimantal lua module loader befause of slowness of startup 1-5 seconds of customized neovim on corporate macos laptop.
-- This is for testing purposes to see if it helps.
-- Cause of slowness in unknown.
vim.loader.enable()
-- Leader keys setup
-- (Must be before plugins are loaded)
vim.g.mapleader = '\t'
vim.g.maplocalleader = ' '
-- Install package manager and plugins
require('package-manager')
-- Auto initialize plugins and configure them
require('lazy').setup('plugins')
-- Changes to default neovim options
require('options')
-- Abbreviations
require('abbreviations')
-- Custom keymaps
require('keymaps').basic()
-- Highlight on yank text object
require('yank-highlight')
-- Automatic window split resize
require('auto-split-resize')
-- LSP on attach configuration
require('language-servers')
-- Setup of additional filetypes
require('additional-filetypes')
-- Setup custom text objects
require('text-objects')
-- Chosen theme
vim.cmd.colorscheme 'onedark'
-- Neovide
if vim.g.neovide then
vim.o.guifont = "JetBrainsMono Nerd Font:h18"
end
-- Print location from which neovim configuration was loaded
-- print(os.getenv('MYVIMRC'))