2024-07-17 17:36:44 -07:00
|
|
|
if vim.fn.has("nvim-0.9.0") ~= 1 then
|
|
|
|
print("ERROR: Requires nvim >= 0.9.0")
|
2023-06-13 16:47:03 -07:00
|
|
|
end
|
|
|
|
|
2021-08-24 09:55:37 -07:00
|
|
|
-- Helpers
|
2024-09-19 11:07:44 -07:00
|
|
|
require("default_settings")
|
|
|
|
require("default_bindings")
|
2021-08-24 09:55:37 -07:00
|
|
|
|
|
|
|
-- Use better grep programs
|
2021-09-01 10:03:05 -07:00
|
|
|
if vim.fn.executable("rg") == 1 then
|
2024-09-19 11:01:47 -07:00
|
|
|
vim.o.grepprg = "rg --vimgrep --no-heading --color=never"
|
|
|
|
vim.o.grepformat = "%f:%l:%c:%m,%f:%l:%m"
|
2021-09-01 10:03:05 -07:00
|
|
|
elseif vim.fn.executable("ag") == 1 then
|
2024-09-19 11:01:47 -07:00
|
|
|
vim.o.grepprg = "ag --vimgrep --nogroup --nocolor"
|
2021-09-01 10:03:05 -07:00
|
|
|
elseif vim.fn.executable("ack") == 1 then
|
2024-09-19 11:01:47 -07:00
|
|
|
vim.o.grepprg = "ack"
|
2021-08-24 09:55:37 -07:00
|
|
|
end
|
|
|
|
|
2024-09-19 11:55:58 -07:00
|
|
|
if vim.g.neovide then
|
|
|
|
require("neovide")
|
|
|
|
end
|
|
|
|
|
2021-12-10 12:04:13 -08:00
|
|
|
-- Disable polyglot for langauges I've added special support for
|
2023-06-07 16:26:46 -07:00
|
|
|
-- TODO: Can this be moved somewhere better?
|
2021-12-10 12:04:13 -08:00
|
|
|
vim.g.polyglot_disabled = { "go", "rust" }
|
|
|
|
|
2021-09-01 10:03:05 -07:00
|
|
|
-- Plugins
|
2024-07-17 11:16:19 -07:00
|
|
|
require("lazy_init")
|
2024-09-17 13:16:25 -07:00
|
|
|
|
|
|
|
-- Load colors after plugins
|
2024-11-04 11:36:57 -08:00
|
|
|
require("colors").init()
|