diff options
| author | fschildt <florian.schildt@protonmail.com> | 2025-11-30 01:49:54 +0100 |
|---|---|---|
| committer | fschildt <florian.schildt@protonmail.com> | 2025-11-30 01:49:54 +0100 |
| commit | e57b85a92b2ac9120d4685bbd926773d599b6555 (patch) | |
| tree | 50cce8779924cd17b7ea886e1a552fced1c661ba /.config/nvim/lua/custom/set.lua | |
| parent | 99af108f8cd0560344fb7c8e6d027355e3f4b933 (diff) | |
Diffstat (limited to '.config/nvim/lua/custom/set.lua')
| -rw-r--r-- | .config/nvim/lua/custom/set.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.config/nvim/lua/custom/set.lua b/.config/nvim/lua/custom/set.lua new file mode 100644 index 0000000..d8bb02c --- /dev/null +++ b/.config/nvim/lua/custom/set.lua @@ -0,0 +1,25 @@ +local vim = vim +vim.opt.number = true -- show line numbers +vim.opt.relativenumber = true -- relative line numbers for navigation +vim.opt.clipboard:append { 'unnamedplus' } -- use clipboard +vim.opt.mouse = "a" -- enable mouse support +vim.opt.updatetime = 250 -- Faster updates (e.g., for LSP diagnostics) +vim.opt.timeoutlen = 500 -- Shorter timeout for key sequences +vim.opt.splitright = true -- vsplit opens new buffer on the right side + +-- tab and indentation settings +vim.opt.expandtab = true -- tabs are converted to spaces +vim.opt.shiftwidth = 4 -- 4 spaces for indentation +vim.opt.tabstop = 4 -- 4 spaces for tabs +vim.opt.softtabstop = 4 -- 4 spaces for tab key +vim.opt.autoindent = true -- Copy indent from previous line +vim.opt.cindent = true +vim.opt.cino = ":0l1(0" + +-- plugin preparation +vim.opt.signcolumn = "yes" -- LSP diagnostics +vim.opt.termguicolors = true -- enable true colors +vim.opt.completeopt = { "menu", "menuone", "noselect" } -- required for nvim-cmp +vim.g.mapleader = " " -- Set leader to space +vim.g.maplocalleader = "\\" -- Set local leader to backslash + |
