diff options
| author | mirenn <me@mirenn.dev> | 2025-12-02 08:54:27 +0100 |
|---|---|---|
| committer | mirenn <me@mirenn.dev> | 2026-03-20 10:24:05 +0100 |
| commit | c71d4a46983880a94d8c4e53dbbc99ebd9325381 (patch) | |
| tree | 96f908c8eccf11d19d77c37c333ed56aa4a437d5 /nvim/lua/config | |
| parent | 6afc74f542553c7cd439d943e916d6aaef3e71d3 (diff) | |
| download | dotfiles-c71d4a46983880a94d8c4e53dbbc99ebd9325381.tar.gz dotfiles-c71d4a46983880a94d8c4e53dbbc99ebd9325381.zip | |
xd
Diffstat (limited to 'nvim/lua/config')
| -rw-r--r-- | nvim/lua/config/options.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index deeeb2e..e465418 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -2,14 +2,24 @@ 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 = true +opt.relativenumber = false opt.cursorline = true opt.termguicolors = true opt.showmode = true |
