diff options
author | listout <listout@protonmail.com> | 2022-08-02 01:10:05 +0530 |
---|---|---|
committer | listout <listout@protonmail.com> | 2022-09-01 16:26:25 +0530 |
commit | 18edf9861d1b38591b51b42465b224d77736db04 (patch) | |
tree | d3c47be47a0bb532444556f307a33465f9cf79fe /lua/core/appearance.lua | |
parent | b5d497da359e7d5224e0462bd5b55c3d1caefd26 (diff) |
nvim: moving init to lua
Signed-off-by: listout <listout@protonmail.com>
Diffstat (limited to 'lua/core/appearance.lua')
-rw-r--r-- | lua/core/appearance.lua | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lua/core/appearance.lua b/lua/core/appearance.lua new file mode 100644 index 0000000..452c4b9 --- /dev/null +++ b/lua/core/appearance.lua @@ -0,0 +1,52 @@ +local opt = vim.opt -- Set options (global/buffer/windows-scoped) + +----------------------------------------------------------- +-- Neovim UI +----------------------------------------------------------- +opt.number = true -- Show line number +opt.relativenumber = true -- Show relative line number +opt.showmatch = true -- Highlight matching parenthesis +opt.foldmethod = 'marker' -- Enable folding (default 'foldmarker') +opt.splitright = true -- Vertical split to the right +opt.splitbelow = true -- Horizontal split to the bottom +opt.ignorecase = true -- Ignore case letters when search +opt.smartcase = true -- Ignore lowercase for the whole pattern +opt.linebreak = true -- Wrap on word boundary +opt.termguicolors = true -- Enable 24-bit RGB colors +opt.laststatus = 2 -- Set global statusline +opt.splitbelow = true +opt.splitright = true +opt.scrolloff = 2 +opt.sidescrolloff = 5 +opt.foldlevelstart = 99 +opt.ruler = false +opt.list = true +opt.showtabline = 0 +opt.winwidth = 30 +opt.winminwidth = 10 +opt.pumheight = 15 +opt.helpheight = 12 +opt.previewheight = 12 +opt.showcmd = false +opt.listchars = 'tab:▸ ,extends:›,precedes:‹,nbsp:·,trail:·' +opt.background = 'dark' +opt.cmdheight = 2 +opt.fillchars = { + diff = "╱", + vert = "│", + fold = "⠀", + eob = " ", -- suppress ~ at EndOfBuffer + --diff = "⣿", -- alternatives = ⣿ ░ ─ ╱ + msgsep = "‾", + foldopen = "▾", + foldsep = "│", + foldclose = "▸", +} + +vim.cmd [[ + " Function, identifier and comments in italic + highlight Function cterm=italic gui=italic + highlight Indentifier cterm=none gui=italic + highlight Comment cterm=italic gui=italic +]] + |