diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-03-17 03:23:23 +0530 |
---|---|---|
committer | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-03-17 03:23:23 +0530 |
commit | 4c9b21de4a24b821a9e726889577e3f5db4191fa (patch) | |
tree | 1c5f3e102d522ed46595dc622a4febd14dade96c /lua | |
parent | e600454bb76ea3bb30ff72c57fd90e7ea0ed07a5 (diff) |
nvim: appearance: config for general appearance
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Diffstat (limited to 'lua')
-rw-r--r-- | lua/appearance.lua | 52 |
1 files changed, 52 insertions, 0 deletions
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" ]] |