Neovim/lua/config/opts.lua

66 lines
1.5 KiB
Lua
Raw Normal View History

2024-11-01 12:14:45 +00:00
--
-- Neovim and VIM global configuration
-- and options
-- ..............................................
--
-- Author: Sven Vogel
-- Created: 01.11.2024
-- Edited: 01.11.2024
--
-- ==============================================
2024-11-24 15:52:23 +00:00
local icons = require'config.icons'
2024-11-01 12:14:45 +00:00
--
-- neovim global options
-- ..............................................
2024-10-30 19:32:53 +00:00
local opt = vim.opt
opt.clipboard = vim.env.SSH_TTY and "" or "unnamedplus" -- Sync with system clipboard
opt.confirm = true
opt.cursorline = true
opt.expandtab = true
opt.ignorecase = true
opt.laststatus = 3 -- global statusline
opt.mouse = "a"
opt.shiftwidth = 4
opt.tabstop = 4
opt.showmode = false
2024-11-08 17:22:53 +00:00
opt.termguicolors = true -- True color support
2024-10-30 19:32:53 +00:00
opt.virtualedit = "block" -- Allow cursor to move where there is no text in visual block mode
opt.wrap = false
opt.smoothscroll = true
2024-11-08 17:22:53 +00:00
opt.swapfile = false -- disable swapfiles because they are fucking garbage
2024-11-01 12:36:27 +00:00
opt.smartindent = true
opt.confirm = true
opt.number = true
opt.foldcolumn = "1"
opt.foldlevel = 99
opt.foldlevelstart = 99
opt.foldenable = true
opt.fillchars = {
2024-11-24 15:52:23 +00:00
foldopen = icons.folds.open,
foldclose = icons.folds.closed,
fold = " ",
foldsep = " ",
diff = "",
eob = " ",
horiz = "",
horizup = "",
horizdown = "",
vert = "",
vertleft = "",
vertright = "",
verthoriz = "",
}
2024-11-01 12:14:45 +00:00
--
-- VIM global options
-- ..............................................
-- disable netrw
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.g.inlay_hints_visible = true