{configure,cleanup} neovim options
This commit is contained in:
parent
59fca1d462
commit
503ba922d2
1 changed files with 24 additions and 14 deletions
|
@ -1,24 +1,34 @@
|
||||||
vim.opt.autowrite = true
|
-- Better file reading
|
||||||
vim.opt.cursorline = true
|
|
||||||
vim.opt.autoread = true
|
vim.opt.autoread = true
|
||||||
|
vim.opt.autowrite = true
|
||||||
|
|
||||||
vim.opt.tabstop = 2
|
-- Line number
|
||||||
vim.opt.shiftround = true
|
vim.opt.cursorline = true
|
||||||
vim.opt.shiftwidth = 2
|
vim.opt.number = true
|
||||||
vim.opt.expandtab = true
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
vim.wo.number = true
|
-- Mouse
|
||||||
vim.wo.relativenumber = true
|
vim.cmd([[
|
||||||
vim.wo.signcolumn = "yes"
|
aunmenu PopUp.How-to\ disable\ mouse
|
||||||
vim.o.undofile = true
|
aunmenu PopUp.-1-
|
||||||
vim.o.clipboard = "unnamedplus"
|
]])
|
||||||
|
vim.opt.mouse = "a"
|
||||||
vim.o.showmode = false
|
|
||||||
|
|
||||||
|
-- System integration
|
||||||
vim.cmd([[ set noswapfile ]])
|
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
|
-- Neovide
|
||||||
-- Put anything you want to happen only in Neovide here
|
|
||||||
if vim.g.neovide then
|
if vim.g.neovide then
|
||||||
vim.o.guifont = "monospace:h12"
|
vim.o.guifont = "monospace:h12"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue