29 lines
551 B
Lua
29 lines
551 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 = " ",
|
|
}
|
|
|
|
-- 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", "qa", {})
|
|
vim.api.nvim_create_user_command("Wqa", "qa", {})
|