nixos-config/config/programs/vim/base.lua

20 lines
548 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local o = vim.o
local wo = vim.wo
local bo = vim.bo
local map = vim.api.nvim_set_keymap
o.mouse = "ar"
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
-- dont pass messages to |ins-completion-menu|
o.shortmess = o.shortmess .. "c"
wo.number = true
wo.relativenumber = true
wo.signcolumn = "number"
bo.tabstop = 2
bo.shiftwidth = 2
bo.expandtab = true