2024-05-29 20:16:28 +00:00
|
|
|
if vim.fn.has("nvim-0.7.0") ~= 1 then
|
|
|
|
print("ERROR: Requires nvim >= 0.7.0")
|
2023-06-13 23:47:03 +00:00
|
|
|
end
|
|
|
|
|
2021-09-16 01:13:17 +00:00
|
|
|
local o = vim.o
|
2021-08-24 16:55:37 +00:00
|
|
|
|
|
|
|
-- Helpers
|
2021-12-15 17:37:51 +00:00
|
|
|
require("_settings")
|
|
|
|
require("_bindings")
|
|
|
|
require("_colors")
|
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
|
|
|
|
o.grepprg = "rg --vimgrep --no-heading --color=never"
|
|
|
|
o.grepformat = "%f:%l:%c:%m,%f:%l:%m"
|
|
|
|
elseif vim.fn.executable("ag") == 1 then
|
|
|
|
o.grepprg = "ag --vimgrep --nogroup --nocolor"
|
|
|
|
elseif vim.fn.executable("ack") == 1 then
|
|
|
|
o.grepprg = "ack"
|
2021-08-24 16:55:37 +00:00
|
|
|
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")
|