config.nvim

NeoVim config
git clone git://popovic.xyz/nvim.config.git/
Log | Files | Refs

set.lua (1051B)


      1 ---@diagnostic disable: undefined-global
      2 vim.cmd('filetype on')
      3 vim.cmd('filetype plugin indent on')
      4 
      5 vim.bo.filetype = "on"
      6 vim.opt.number = true
      7 vim.opt.relativenumber = true
      8 vim.g.show_whitespace = 1
      9 vim.g.loaded_perl_provider = false
     10 vim.opt.termguicolors = true
     11 vim.o.winborder = "single"
     12 
     13 vim.opt.clipboard = "unnamedplus"
     14 
     15 vim.opt.textwidth = 80
     16 vim.opt.wrap = true
     17 
     18 vim.opt.ignorecase = true
     19 vim.opt.tabstop = 4
     20 vim.opt.shiftwidth = 4
     21 vim.opt.smartindent = true
     22 vim.opt.smartcase = true
     23 vim.opt.expandtab = true
     24 
     25 vim.opt.viminfofile = os.getenv("HOME") .. "/.local/state/nvim/viminfo"
     26 vim.opt.undodir = os.getenv("HOME") .. "/.local/state/nvim/undodir"
     27 vim.opt.undofile = true
     28 
     29 vim.opt.scrolloff = 10
     30 vim.opt.hlsearch = false
     31 
     32 vim.opt.ttimeoutlen = 0
     33 vim.opt.timeoutlen = 1000
     34 
     35 vim.opt.scrolloff = 10
     36 vim.opt.mouse = ""
     37 vim.opt.mousescroll = "ver:0,hor:0"
     38 vim.opt.wildmode = "longest,list,full"
     39 vim.opt.signcolumn = "yes"
     40 vim.opt.isfname:append("@-@")
     41 
     42 vim.opt.splitbelow = true
     43 vim.opt.splitright = true
     44 
     45 vim.opt.spellsuggest = { "best", 5 }