Neovim/init.lua

23 lines
523 B
Lua
Raw Normal View History

require("bootstrap")
2024-02-23 18:23:02 +00:00
-- load options
local options = require("options")
2024-02-23 18:23:02 +00:00
-- set neovim options
for k, v in pairs(options.vim) do
vim.opt[k] = v
end
-- apply color theme
local status, _ = pcall(vim.cmd, "colorscheme " .. options.ui.theme)
if not status then
print("Colorscheme not found: " .. options.ui.theme) -- Print an error message if the colorscheme is not installed
return
end
2024-03-01 17:57:06 +00:00
-- apply keymap
local keymap = require("keymap")
2024-03-01 17:57:06 +00:00
for _, v in pairs(keymap) do
vim.keymap.set(v[1], v[2], v[3], v[4])
end