mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-10 18:16:29 +00:00
48af6cc3ef
Only reason I'm not using this is that there is no floating preview window
31 lines
696 B
Lua
31 lines
696 B
Lua
local o = vim.o
|
|
local g = vim.g
|
|
local utils = require("utils")
|
|
|
|
-- Set leader to space
|
|
g.mapleader = " "
|
|
|
|
o.termguicolors = true
|
|
o.number = true
|
|
o.expandtab = true
|
|
o.tabstop = 4
|
|
o.softtabstop = 4
|
|
o.shiftwidth = 4
|
|
o.virtualedit = "onemore"
|
|
o.scrolljump = 5
|
|
o.scrolloff = 3
|
|
-- o.term = "xterm-256color"
|
|
-- o.backspace = "2"
|
|
|
|
-- o.mousehide = true
|
|
o.mouse = "a"
|
|
|
|
-- Autocomplete options
|
|
o.completeopt = "menuone,noinsert,noselect,preview"
|
|
utils.augroup("close_preview", function()
|
|
vim.cmd("autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif")
|
|
end)
|
|
|
|
local has = vim.fn.has
|
|
g.is_mac = (has("mac") or has("macunix") or has("gui_macvim") or vim.fn.system("uname"):find("^darwin") ~= nil)
|