Advertisement
icon_bishop

options.lua

Dec 9th, 2024
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.54 KB | None | 0 0
  1. vim.wo.number = true
  2. vim.o.relativenumber = true
  3. vim.o.breakindent = true -- Enable break indent
  4. vim.o.undofile = true -- Save undo history
  5. vim.o.ignorecase = true -- Case-insensitive searching UNLESS \C or capital in search
  6. vim.o.smartcase = true -- smart case
  7. vim.wo.signcolumn = 'yes' -- Keep signcolumn on by default
  8. vim.o.updatetime = 250 -- Decrease update time
  9. vim.o.timeoutlen = 300 -- time to wait for a mapped sequence to complete (in milliseconds)
  10. vim.o.backup = false -- creates a backup file
  11. vim.o.writebackup = false -- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited
  12. vim.o.completeopt = 'menuone,noselect' -- Set completeopt to have a better completion experience
  13. vim.opt.termguicolors = true -- set termguicolors to enable highlight groups
  14. vim.o.whichwrap = 'bs<>[]hl' -- which "horizontal" keys are allowed to travel to prev/next line
  15. vim.o.wrap = false -- display lines as one long line
  16. vim.o.linebreak = true -- companion to wrap don't split words
  17. vim.o.scrolloff = 4 -- minimal number of screen lines to keep above and below the cursor
  18. vim.o.sidescrolloff = 8 -- minimal number of screen columns either side of cursor if wrap is `false`
  19. vim.o.cursorline = false -- highlight the current line
  20. vim.o.splitbelow = true -- force all horizontal splits to go below current window
  21. vim.o.splitright = true -- force all vertical splits to go to the right of current window
  22. vim.o.swapfile = false -- creates a swapfile
  23. vim.o.smartindent = true -- make indenting smarter again
  24. vim.o.showmode = true -- we don't need to see things like -- INSERT -- anymore
  25. vim.o.showtabline = 2 -- always show tabs
  26. vim.o.backspace = 'indent,eol,start' -- allow backspace on
  27. vim.o.pumheight = 10 -- pop up menu height
  28. vim.o.conceallevel = 0 -- so that `` is visible in markdown files
  29. vim.o.fileencoding = 'utf-8' -- the encoding written to a file
  30. vim.o.cmdheight = 1 -- more space in the neovim command line for displaying messages
  31. vim.o.autoindent = true -- copy indent from current line when starting new one
  32. vim.opt.shortmess:append 'c' -- don't give |ins-completion-menu| messages
  33. vim.opt.iskeyword:append '-' -- hyphenated words recognized by searches
  34. vim.opt.formatoptions:remove { 'c', 'r', 'o' } -- don't insert the current comment leader automatically for auto-wrapping comments using 'textwidth', hitting <Enter> in insert mode, or hitting 'o' or 'O' in normal mode.
  35. vim.opt.runtimepath:remove '/usr/share/vim/vimfiles' -- separate vim plugins from neovim in case vim still in use
Tags: neovim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement