-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
29 lines (21 loc) · 926 Bytes
/
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
-- Set LSP logging level to debug
vim.lsp.set_log_level(vim.log.levels.ERROR)
-- build .spl files
local spell_files = vim.fn.globpath(vim.o.runtimepath, "spell/*.add", false, true)
for _, file in ipairs(spell_files) do
-- use `silent!` to suppress output messages from command
vim.cmd("silent! mkspell! " .. vim.fn.fnameescape(file))
end
_G.neorg_env = os.getenv("NEORG_ENVIRONMENT") or "DEFAULT"
-- bootstrap lazy.nvim and plugins
require("jai.config")
vim.debug("neorg environment: " .. _G.neorg_env, { title = "Init" })
-- set colorscheme using custom command
vim.cmd("ColorschemeAuto rose-pine")
local snippet_search = vim.fn.stdpath("config") .. "/snippets"
vim.debug("snippets path: " .. snippet_search, { title = "Init" })
-- Print message if VSCode neovim extension is activated
-- and neovim confing was successfully loaded in VSCode.
if vim.g.vscode then
print("VSCode neovim extension activated")
end