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