From 4c9b21de4a24b821a9e726889577e3f5db4191fa Mon Sep 17 00:00:00 2001
From: Brahmajit Das <brahmajit.xyz@gmail.com>
Date: Sun, 17 Mar 2024 03:23:23 +0530
Subject: nvim: appearance: config for general appearance

Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
---
 lua/appearance.lua | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 lua/appearance.lua

(limited to 'lua/appearance.lua')

diff --git a/lua/appearance.lua b/lua/appearance.lua
new file mode 100644
index 0000000..1626a1b
--- /dev/null
+++ b/lua/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
+]]
+vim.cmd [[ "syntax sync fromstart" ]]
-- 
cgit v1.2.3