dot

NixOS dotfiles
git clone https://git.echoz.io/dot.git
Log | Files | Refs

general.nix (818B)


      1 {
      2   programs.neovim.customPlugins.general = {
      3     "plugin/general.lua" = # lua
      4       ''
      5         vim.opt.tabstop = 2
      6         vim.opt.shiftwidth = 2
      7         vim.opt.expandtab = true
      8 
      9         vim.opt.number = true
     10         vim.opt.relativenumber = true
     11 
     12         vim.opt.scrolloff = 5
     13 
     14         vim.opt.cursorline = true
     15         vim.opt.textwidth = 100
     16         vim.opt.colorcolumn = '+1'
     17         vim.opt.formatoptions = 'cqj'
     18 
     19         vim.opt.undofile = true
     20         vim.opt.undodir = vim.fn.stdpath('data') .. '/undodir'
     21 
     22         vim.opt.path = vim.o.path .. '**'
     23         vim.opt.wildmenu = true
     24         vim.opt.wildignore = {
     25           "**/.direnv/**",
     26           "**/node_modules/**",
     27           "**/vendor/**",
     28         };
     29       '';
     30 
     31     "ftplugin/mail.lua" = # lua
     32       ''
     33         vim.opt.textwidth = 72
     34       '';
     35   };
     36 }