diff options
author | nathan11 <thenathansmithsmith@gmail.com> | 2023-07-25 00:52:07 -0600 |
---|---|---|
committer | nathan11 <thenathansmithsmith@gmail.com> | 2023-07-25 00:52:07 -0600 |
commit | 0f8c62f2d18fd86e2bad01a33e5e9beb4e2ef77b (patch) | |
tree | e098cecfe770af08bd77eda320f8a0260c3c68c6 /lua/config_options.lua |
first commit
Diffstat (limited to 'lua/config_options.lua')
-rw-r--r-- | lua/config_options.lua | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/lua/config_options.lua b/lua/config_options.lua new file mode 100644 index 0000000..78e2b53 --- /dev/null +++ b/lua/config_options.lua @@ -0,0 +1,54 @@ +local autocmd = vim.api.nvim_create_autocmd + +-- vim options. +vim.opt.number = true +vim.opt.relativenumber = true +vim.opt.autoindent = true +vim.opt.mouse = 'a' +vim.opt.wrap = true +vim.opt.exrc = true +vim.opt.secure = true +vim.opt.ruler = false +vim.opt.showmode = false +vim.opt.showcmd = true +vim.opt.modeline = false +vim.opt.wildmenu = true +vim.opt.wildmode = "list:full" +vim.opt.smartcase = true +vim.opt.showmode = false +vim.opt.incsearch = true +vim.opt.encoding = "UTF-8" +vim.g.loaded_netrw = 0 +vim.o.shell = "zsh" +vim.o.shortmess = vim.o.shortmess .. "S" +vim.o.showcmd = false + +-- Gui stuff. +vim.opt.guicursor = { + "n-v:blinkon0-block-Cursor/lCursor", + "i-c-ci-ve:hor20-Cursor/lCursor", + "r-cr:hor20", + "o:hor50", + "i:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor", + "sm:block-blinkwait175-blinkoff150-blinkon175" +} + +-- Colors. +vim.opt.background = "dark" +vim.cmd("colorscheme gruvbox") + +-- Disable background color in terminal mode. +if vim.fn.has("ttyout") == 1 then + vim.cmd("hi Normal ctermbg=NONE guibg=NONE") +end + +-- True color support. +if os.getenv("COLORTERM") == "truecolor" then + vim.opt.termguicolors = true +end + +-- Copy and pasting. +vim.opt.clipboard = "unnamedplus" + +-- Fonts. +vim.opt.guifont = "Hack Nerd Font:h10" |