2021-08-08 15:33:23 +03:00
|
|
|
local o = vim.o
|
|
|
|
local g = vim.g
|
|
|
|
local cmd = vim.cmd
|
|
|
|
|
|
|
|
------ Appearance ------
|
|
|
|
|
|
|
|
-- Set colorscheme
|
2021-08-18 21:20:20 +03:00
|
|
|
require('nightfox').set()
|
2021-08-08 15:33:23 +03:00
|
|
|
|
|
|
|
-- True colors
|
|
|
|
o.termguicolors = true
|
|
|
|
|
|
|
|
-- Floating window transparency
|
|
|
|
o.winblend = 10
|
|
|
|
|
|
|
|
-- Remove extra line
|
|
|
|
o.cmdheight = 1
|
|
|
|
|
|
|
|
-- Always show signcolumn
|
|
|
|
o.signcolumn = 'yes'
|
|
|
|
|
2021-08-17 22:36:48 +03:00
|
|
|
-- Diff settings
|
|
|
|
cmd 'set diffopt=filler,internal,algorithm:histogram,indent-heuristic'
|
|
|
|
|
2021-08-18 09:29:44 +03:00
|
|
|
-- Show line numbers
|
|
|
|
cmd 'set number'
|
|
|
|
|
2021-08-08 15:33:23 +03:00
|
|
|
-- Blinking cursor
|
|
|
|
cmd 'set guicursor=i:ver1'
|
|
|
|
cmd 'set guicursor+=a:blinkon1'
|
|
|
|
|
|
|
|
-- Gutter and cursoline bg transparent
|
|
|
|
cmd 'highlight CursorLineNr guibg=transparent'
|
|
|
|
cmd 'highlight SignColumn guibg=transparent'
|
|
|
|
|
|
|
|
------ Misc -------
|
|
|
|
|
|
|
|
-- Use suda by default
|
|
|
|
g.suda_smart_edit = 1
|
|
|
|
|
|
|
|
|
|
|
|
-- Split direction
|
|
|
|
o.splitbelow = true
|
|
|
|
o.splitright = true
|
|
|
|
|
|
|
|
|
|
|
|
-- Case insensitive search
|
|
|
|
o.ignorecase = true
|
|
|
|
o.smartcase = true
|
|
|
|
|
|
|
|
-- Use mouse
|
|
|
|
o.mouse = 'a'
|
|
|
|
|
|
|
|
-- Use system clipboard
|
|
|
|
o.clipboard = 'unnamedplus'
|
|
|
|
|
|
|
|
-- Autoindent and syntax higlight
|
|
|
|
o.autoindent = true
|
|
|
|
o.smartindent = true
|
|
|
|
o.tabstop = 4
|
|
|
|
o.shiftwidth = 4
|
|
|
|
cmd 'syntax on'
|
|
|
|
cmd 'filetype on'
|
|
|
|
cmd 'filetype plugin indent on'
|
|
|
|
|
|
|
|
-- Disable auto commenting
|
|
|
|
o.formatoptions = 'cro'
|