options: cleanup
This commit is contained in:
parent
48bb73761b
commit
96af04e40d
1 changed files with 11 additions and 11 deletions
|
@ -2,8 +2,10 @@
|
||||||
vim.opt.autoread = true
|
vim.opt.autoread = true
|
||||||
vim.opt.autowrite = true
|
vim.opt.autowrite = true
|
||||||
|
|
||||||
-- Line number
|
-- Cursorline
|
||||||
vim.opt.cursorline = true
|
vim.opt.cursorline = true
|
||||||
|
|
||||||
|
-- Line numbers
|
||||||
vim.opt.number = true
|
vim.opt.number = true
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
|
@ -23,27 +25,25 @@ vim.opt.ignorecase = true
|
||||||
vim.opt.smartcase = true
|
vim.opt.smartcase = true
|
||||||
|
|
||||||
-- System integration
|
-- System integration
|
||||||
vim.cmd([[ set noswapfile ]])
|
|
||||||
vim.opt.clipboard = "unnamedplus"
|
vim.opt.clipboard = "unnamedplus"
|
||||||
|
vim.opt.swapfile = false
|
||||||
vim.opt.undofile = true
|
vim.opt.undofile = true
|
||||||
|
|
||||||
-- Tab
|
-- Tab settings
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
vim.opt.shiftwidth = 2
|
vim.opt.shiftwidth = 2
|
||||||
vim.opt.tabstop = 2
|
vim.opt.tabstop = 2
|
||||||
|
|
||||||
-- Visuals
|
-- Visuals
|
||||||
vim.opt.laststatus = 3
|
vim.opt.laststatus = 3
|
||||||
vim.opt.showmode = false -- we already have lualine
|
vim.opt.showmode = false -- Handled by lualine
|
||||||
vim.opt.signcolumn = "yes" -- so it doesn't shift around
|
vim.opt.signcolumn = "yes" -- Prevents shifting
|
||||||
|
|
||||||
-- Neovide
|
-- Neovide specific settings
|
||||||
if vim.g.neovide then
|
if vim.g.neovide then
|
||||||
vim.o.guifont = "monospace:h12"
|
vim.opt.guifont = "monospace:h12"
|
||||||
|
|
||||||
-- Terminal-emulator-like copy/pasting
|
-- Terminal-emulator-like copy/pasting
|
||||||
local opts = { noremap = true, silent = true }
|
vim.api.nvim_set_keymap("n", "<C-C>", '"+y', { noremap = true, silent = true })
|
||||||
local keymap = vim.api.nvim_set_keymap
|
vim.api.nvim_set_keymap("n", "<C-V>", '"+p', { noremap = true, silent = true })
|
||||||
keymap("n", "<C-C>", '"*y :let @+=@*<CR>', opts)
|
|
||||||
keymap("n", "<C-V>", '"+p', opts)
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue