diff options
| author | mirenn <me@mirenn.dev> | 2026-09-21 23:09:33 +0200 |
|---|---|---|
| committer | mirenn <me@mirenn.dev> | 2026-10-06 14:13:32 +0200 |
| commit | 8f9c77878f8742a47d34a50748023d1b552cfbf1 (patch) | |
| tree | f749dff061451ab8427100c452f8175de8e39c53 /mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua | |
| parent | 8501a38d7c3bbc2e99466e6658be134c72d4f47a (diff) | |
| download | dotfiles-8f9c77878f8742a47d34a50748023d1b552cfbf1.tar.gz dotfiles-8f9c77878f8742a47d34a50748023d1b552cfbf1.zip | |
guix primer
Diffstat (limited to 'mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua')
| -rw-r--r-- | mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua b/mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua new file mode 100644 index 0000000..e465418 --- /dev/null +++ b/mirenn/home/files/dotfiles/.config/nvim/lua/config/options.lua @@ -0,0 +1,51 @@ +local opt = vim.opt + +-- Indent +opt.tabstop = 2 +opt.softtabstop = 2 +opt.shiftwidth = 2 +opt.expandtab = false +opt.smartindent = true +opt.wrap = false +vim.api.nvim_create_autocmd("FileType", { + pattern = "bend", + callback = function() + vim.opt_local.expandtab = true + vim.opt_local.tabstop = 4 + vim.opt_local.shiftwidth = 4 + end, +}) + + +-- Appearance +opt.number = true +opt.relativenumber = false +opt.cursorline = true +opt.termguicolors = true +opt.showmode = true +opt.colorcolumn = "100" +opt.signcolumn = "yes" +opt.cmdheight = 1 +opt.scrolloff = 10 +opt.completeopt = "menuone,noinsert,noselect" +opt.conceallevel = 3 + +-- Search +opt.incsearch = true +opt.hlsearch = false +opt.ignorecase = true +opt.smartcase = true + +-- Behaviuor +opt.hidden = true +opt.errorbells = false +opt.swapfile = false +opt.backup = false +opt.backspace = "indent,eol,start" +opt.splitright = true +opt.splitbelow = true +opt.autochdir = false +opt.mouse = "a" +opt.clipboard = "unnamedplus" +opt.modifiable = true +opt.encoding = "UTF-8" |
