From 503ba922d2c88f44b56fc8e253d972b5f5343137 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Wed, 21 Feb 2024 17:07:58 +0800 Subject: [PATCH] {configure,cleanup} neovim options --- lua/options.lua | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/lua/options.lua b/lua/options.lua index c5575df..67fe093 100755 --- a/lua/options.lua +++ b/lua/options.lua @@ -1,24 +1,34 @@ -vim.opt.autowrite = true -vim.opt.cursorline = true +-- Better file reading vim.opt.autoread = true +vim.opt.autowrite = true -vim.opt.tabstop = 2 -vim.opt.shiftround = true -vim.opt.shiftwidth = 2 -vim.opt.expandtab = true +-- Line number +vim.opt.cursorline = true +vim.opt.number = true +vim.opt.relativenumber = true -vim.wo.number = true -vim.wo.relativenumber = true -vim.wo.signcolumn = "yes" -vim.o.undofile = true -vim.o.clipboard = "unnamedplus" - -vim.o.showmode = false +-- Mouse +vim.cmd([[ + aunmenu PopUp.How-to\ disable\ mouse + aunmenu PopUp.-1- +]]) +vim.opt.mouse = "a" +-- System integration vim.cmd([[ set noswapfile ]]) +vim.opt.clipboard = "unnamedplus" +vim.opt.undofile = true + +-- Tab +vim.opt.expandtab = true +vim.opt.tabstop = 2 + +-- Visuals +vim.opt.laststatus = 3 +vim.opt.showmode = false -- we already have lualine +vim.opt.signcolumn = "yes" -- so it doesn't shift around -- Neovide --- Put anything you want to happen only in Neovide here if vim.g.neovide then vim.o.guifont = "monospace:h12"