-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
40 lines (38 loc) Β· 1.81 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
if vim.loader and vim.fn.has("nvim-0.9.1") == 1 then
vim.loader.enable()
end
vim.defer_fn(function()
for _, source in ipairs({
"remaps",
"autocmd",
"icons",
"global",
"health",
"log",
}) do
local status_ok, fault = pcall(require, "NeutronVim.core." .. source)
if not status_ok then
vim.api.nvim_err_writeln("Error loading " .. source .. "\n\n" .. fault)
end
end
end, 0)
require("NeutronVim.core.bootstrap")
require("NeutronVim.core.opts")
vim.cmd([[autocmd VimEnter * highlight Keyword gui=italic guifg=#F08753]])
vim.cmd([[autocmd VimEnter * highlight Visual gui=nocombine guifg=#EA3535]])
vim.cmd([[autocmd VimEnter * highlight Comment gui=italic,underline guifg=#a1afaf]])
vim.cmd([[autocmd VimEnter * highlight Normal gui=nocombine guifg=Cyan]])
vim.cmd([[autocmd VimEnter * highlight Number gui=italic guifg=#f7768e]])
vim.cmd([[autocmd VimEnter * highlight String gui=italic guifg=#69ff00]])
vim.cmd([[autocmd VimEnter * highlight @variable gui=nocombine guifg=#7fe1aa]])
vim.cmd([[autocmd VimEnter * highlight @field gui=italic guifg=#2ac3de]])
vim.cmd([[autocmd VimEnter * highlight @property gui=italic guifg=lightgreen]])
vim.cmd([[autocmd VimEnter * highlight Special gui=italic guifg=gold]])
vim.cmd([[autocmd VimEnter * highlight Function gui=italic guifg=orange]])
vim.cmd([[autocmd VimEnter * highlight StatusLine gui=italic guibg=NONE]])
vim.cmd([[autocmd VimEnter * highlight StatusLineNC gui=italic guibg=NONE]])
vim.cmd([[autocmd VimEnter * highlight NvimTreeIndentMarker guifg=#61afef]])
vim.cmd([[autocmd BufReadPost,BufNewFile * filetype plugin indent on]])
vim.cmd([[autocmd BufReadPost,BufNewFile * syntax on]])
vim.cmd([[autocmd BufReadPost,BufNewFile *.qml setfiletype qmljs]])
vim.cmd([[autocmd BufWritePost ~/.local/share/chezmoi/* ! chezmoi apply --source-path "%"]])