diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-05-02 18:37:01 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-05-02 18:37:01 +0300 |
| commit | 85f647fea444994eca583fad9047fa3b35347cdf (patch) | |
| tree | 1a1d2b99e5cafd2af9ed89a866f710031982045d /.config/nvim/lua/options.lua | |
| parent | 8328f842e77850d30b7e6ece485ed2c163d9ffe0 (diff) | |
Changed some keymaps/options from lazyvim
Diffstat (limited to '.config/nvim/lua/options.lua')
| -rw-r--r-- | .config/nvim/lua/options.lua | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua index b7da110..86f1761 100644 --- a/.config/nvim/lua/options.lua +++ b/.config/nvim/lua/options.lua @@ -3,7 +3,9 @@ vim.g.have_nerd_font = true vim.opt.mouse = 'a' -- enable mouse vim.opt.clipboard = 'unnamedplus' -- use system clipboard vim.opt.undofile = true -- persist undo history by saving it to a file +vim.opt.undolevels = 10000 vim.opt.exrc = true -- WARNING: runs .nvim.lua in cwd, which may execute arbitrary code +vim.opt.updatetime = 200 -- save swap file and trigger CursorHold -- Tab vim.opt.expandtab = true -- convert tabs to spaces @@ -12,9 +14,9 @@ vim.opt.softtabstop = 4 -- number of idfk tab when editing vim.opt.shiftwidth = 4 -- number of spaces to insert on tab -- UI +vim.opt.number = true vim.opt.colorcolumn = '80' vim.opt.signcolumn = 'auto:9' -vim.opt.number = true vim.opt.relativenumber = true vim.opt.cursorline = true -- highlight current line vim.opt.splitright = true @@ -24,20 +26,23 @@ vim.opt.list = true vim.opt.listchars = { tab = ' ', trail = '·', nbsp = '␣' } vim.diagnostic.config({ signs = false }) -- disable signcolumn diagnostics vim.opt.fillchars:append({ diff = '╱' }) -- nicer diff view for filled spaces +vim.opt_local.wrap = false +vim.opt.wrap = false +vim.opt.linebreak = true -- wrap lines at convenient points +vim.opt.laststatus = 3 -- global stautsline +vim.opt.smoothscroll = true -- Searching vim.opt.hlsearch = true vim.opt.ignorecase = true vim.opt.smartcase = true +vim.opt.inccommand = 'split' -- shows preview for commands like :%s/from/to -- Misc -vim.opt_local.wrap = false -vim.opt.wrap = false vim.opt.scrolloff = 8 +vim.opt.sidescrolloff = 8 vim.opt.termguicolors = true -vim.opt.laststatus = 3 -- views can only be fully collapsed with the global statusline -vim.opt.splitkeep = 'screen' -- for edgy.nvim -vim.opt.inccommand = 'split' -- shows preview for commands like :%s/from/to +vim.opt.splitkeep = 'screen' vim.opt.sessionoptions = 'blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions' -- Disable warnings for missing language providers |
