aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/config
diff options
context:
space:
mode:
authoreric.marin <maarin.eric@gmail.com>2025-12-02 08:54:27 +0100
committerericmarin <maarin.eric@gmail.com>2026-03-20 10:24:05 +0100
commit2781082f1085757a0cfb929ba37de968726ec751 (patch)
tree96f908c8eccf11d19d77c37c333ed56aa4a437d5 /nvim/lua/config
parentc2acdf9cca1de631c7d1c60d7cfba2a7ab816e59 (diff)
downloaddotfiles-2781082f1085757a0cfb929ba37de968726ec751.tar.gz
dotfiles-2781082f1085757a0cfb929ba37de968726ec751.zip
xd
Diffstat (limited to '')
-rw-r--r--nvim/lua/config/options.lua12
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