31 lines
665 B
Lua
31 lines
665 B
Lua
o = vim.o
|
|
au = vim.api.nvim_create_autocmd
|
|
wo = vim.wo
|
|
|
|
o.clipboard = 'unnamedplus'
|
|
o.completeopt = 'menu', 'menuone', 'noselect'
|
|
o.hlsearch = false
|
|
o.ignorecase = true
|
|
o.laststatus = 3
|
|
o.list = true
|
|
o.listchars = 'nbsp:¬,tab:»·,trail:·,extends:>'
|
|
o.mouse = 'a'
|
|
o.nu = true
|
|
o.relativenumber = true
|
|
o.scrolloff = 8
|
|
o.tabstop = 4
|
|
o.shiftwidth = 4
|
|
o.showcmd = true
|
|
o.showmode = true
|
|
o.showtabline = 2
|
|
o.smartcase = true
|
|
o.splitright = true
|
|
o.swapfile = false
|
|
o.undofile = true
|
|
o.termguicolors = true
|
|
wo.wrap = false
|
|
|
|
|
|
au({ 'BufWritePre' }, { pattern = { '*' }, command = [[%s/\n\+\%$//e]] })
|
|
au('FileType', { pattern = 'dart', command = 'setlocal ts=2 sw=2 et' })
|