-- Options are automatically loaded before lazy.nvim startup -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Add any additional options here vim.opt.timeoutlen = 150 vim.opt.spell = true vim.opt.spelllang = { "en", "cjk" } vim.opt.spelloptions = "camel" vim.opt.backup = false vim.g.maplocalleader = "\\" vim.g.autoformat = false vim.g.node_host_prog = "/opt/homebrew/bin/neovim-node-host" local indent = 2 -- vim.opt.expandtab = true -- Use spaces instead of tabs vim.opt.softtabstop = indent -- Number of spaces that a counts for while performing editing operations vim.opt.tabstop = indent -- Number of spaces tabs count for vim.opt.shiftwidth = indent -- Size of an indent if vim.g.neovide then vim.o.guifont = "Maple Mono:h16" vim.g.neovide_scale_factor = 1.0 vim.g.neovide_floating_corner_radius = 20.0 vim.g.neovide_line_height = 1.5 -- vim.g.transparency = 0.8 -- vim.g.neovide_transparency = 0.9 -- Allow clipboard copy paste in neovim vim.g.neovide_input_use_logo = 1 vim.api.nvim_set_keymap("", "", "+p", { noremap = true, silent = true }) vim.api.nvim_set_keymap("!", "", "+", { noremap = true, silent = true }) vim.api.nvim_set_keymap("t", "", "+", { noremap = true, silent = true }) vim.api.nvim_set_keymap("v", "", "+", { noremap = true, silent = true }) end