-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
35 lines (32 loc) · 1.34 KB
/
init.lua
File metadata and controls
35 lines (32 loc) · 1.34 KB
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
require("core")
-- Install colorscheme (the only plugin)
-- local catppuccin_path = vim.fn.stdpath("config") .. "/pack/themes/start/catppuccin"
-- if not vim.uv.fs_stat(catppuccin_path) then
-- print("Installing colorscheme (one time run)...")
-- local catppuccin_repo = "https://github.com/catppuccin/nvim.git"
-- local out = vim.fn.system({ "git", "clone", catppuccin_repo, catppuccin_path })
-- if vim.v.shell_error ~= 0 then
-- vim.api.nvim_echo({
-- { "Failed to clone catppuccin:\n", "ErrorMsg" },
-- { out, "WarningMsg" },
-- { "\nPress any key to exit..." },
-- }, true, {})
-- vim.fn.getchar()
-- os.exit(1)
-- end
-- print("Restart neovim to load colorscheme")
-- end
-- vim.pack.add({"https://github.com/catppuccin/nvim.git"})
-- Set colorscheme
local colorschemes = { "catppuccin", "sorbet", "habamax", }
for _, colorscheme in ipairs(colorschemes) do
if pcall(vim.cmd.colorscheme, colorscheme) then
break
end
end
-- Use undercurl, if supported by terminal
vim.cmd.highlight("DiagnosticUnderlineOk gui=undercurl")
vim.cmd.highlight("DiagnosticUnderlineHint gui=undercurl")
vim.cmd.highlight("DiagnosticUnderlineInfo gui=undercurl")
vim.cmd.highlight("DiagnosticUnderlineWarn gui=undercurl")
vim.cmd.highlight("DiagnosticUnderlineError gui=undercurl")