2022-06-12 19:29:42 +00:00
|
|
|
|
local o = vim.o
|
|
|
|
|
local wo = vim.wo
|
|
|
|
|
local bo = vim.bo
|
|
|
|
|
local map = vim.api.nvim_set_keymap
|
|
|
|
|
|
2022-06-12 19:58:31 +00:00
|
|
|
|
o.mouse = "ar"
|
2022-06-12 19:29:42 +00:00
|
|
|
|
o.clipboard = "unnamedplus" -- The correct default clipboard
|
|
|
|
|
o.cmdheight = 2 -- more space for displaying messages
|
|
|
|
|
-- Having longer updatetime (default is 4000ms = 4s) leads to noticeable delays and poor user experience
|
|
|
|
|
o.updatetime = 300
|
|
|
|
|
-- don’t pass messages to |ins-completion-menu|
|
2022-06-12 19:53:34 +00:00
|
|
|
|
o.shortmess = o.shortmess .. "c"
|
2022-06-12 19:29:42 +00:00
|
|
|
|
|
2022-06-12 19:58:31 +00:00
|
|
|
|
wo.number = true
|
|
|
|
|
wo.relativenumber = true
|
2022-06-12 19:29:42 +00:00
|
|
|
|
|
|
|
|
|
bo.tabstop = 2
|
|
|
|
|
bo.shiftwidth = 2
|
|
|
|
|
bo.expandtab = true
|