Neovim/init.lua

28 lines
603 B
Lua
Raw Normal View History

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
2024-05-24 16:42:20 +00:00
-- set global vim options
for k, v in pairs(options.g) do
vim.g[k] = v
end
2024-04-16 12:13:38 +00:00
require("bootstrap")
2024-02-23 18:23:02 +00:00
-- 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