vim.g.mapleader = " " vim.keymap.set({ "n", "v" }, "y", '"+y', { noremap = true, silent = true }) vim.cmd('syntax enable') vim.opt.encoding = 'utf-8' vim.opt.fileencoding = 'utf-8' vim.opt.mouse = 'a' vim.opt.hidden = true vim.opt.ruler = true vim.opt.cmdheight = 2 vim.opt.splitbelow = true vim.opt.splitright = true vim.opt.conceallevel = 0 vim.opt.tabstop = 2 vim.opt.shiftwidth = 2 vim.opt.smarttab = true vim.opt.expandtab = true vim.opt.smartindent = true vim.opt.autoindent = true vim.opt.ignorecase = true vim.opt.smartcase = true vim.opt.laststatus = 0 vim.opt.number = false vim.opt.wrap = true vim.opt.breakindent = true vim.opt.cursorline = false vim.opt.background = 'dark' vim.opt.showtabline = 2 vim.opt.updatetime = 300 vim.opt.timeoutlen = 500 vim.opt.autochdir = true vim.opt.swapfile = true vim.opt.dir = '~/.cache/nvim' local Plug = vim.fn['plug#'] vim.call('plug#begin', '~/.local/share/nvim/plugged') Plug 'vim-airline/vim-airline' Plug 'sheerun/vim-polyglot' Plug 'jiangmiao/auto-pairs' Plug('sainnhe/everforest', { ['do'] = function() vim.opt.termguicolors = true vim.cmd('colorscheme everforest') vim.g.airline_theme = 'everforest' vim.g.everforest_background = 'soft' vim.g.everforest_better_performance = 1 end }) vim.call('plug#end') vim.opt.termguicolors = true vim.cmd('colorscheme everforest') vim.g.airline_theme = 'everforest' vim.g.everforest_background = 'soft' vim.g.everforest_better_performance = 1