34 lines
677 B
Lua
34 lines
677 B
Lua
do
|
|
local neovim_options = {
|
|
expandtab = true,
|
|
number = true,
|
|
relativenumber = true,
|
|
shiftwidth = 2,
|
|
tabstop = 2,
|
|
termguicolors = true,
|
|
}
|
|
|
|
for k, v in pairs(neovim_options) do
|
|
vim.opt[k] = v
|
|
end
|
|
end
|
|
|
|
-- More
|
|
vim.opt.fixeol = true
|
|
vim.opt.list = true
|
|
vim.opt.listchars = {
|
|
trail = "·",
|
|
tab = " ",
|
|
}
|
|
vim.opt.undofile = true
|
|
|
|
-- Additional commands for typos
|
|
vim.api.nvim_create_user_command("Qa", "qa", {})
|
|
vim.api.nvim_create_user_command("QA", "qa", {})
|
|
|
|
vim.api.nvim_create_user_command("Wqa", "wqa", {})
|
|
vim.api.nvim_create_user_command("WQa", "wqa", {})
|
|
vim.api.nvim_create_user_command("WQA", "wqa", {})
|
|
|
|
vim.api.nvim_create_user_command("W", "w", {})
|