dot

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

style.nix (1120B)


      1 {
      2   programs.neovim.customPlugins.style = {
      3     "plugin/style.lua" = # lua
      4       ''
      5         vim.api.nvim_set_hl(0, 'Normal', { bg='none' })
      6         vim.api.nvim_set_hl(0, 'StatusLine', { bg='none' })
      7         vim.api.nvim_set_hl(0, 'StatusLineNC', { bg='none', fg='gray' })
      8         vim.api.nvim_set_hl(0, 'WinBar', { bg='none' })
      9         vim.api.nvim_set_hl(0, 'WinBarNC', { bg='none', fg='gray' })
     10         vim.api.nvim_set_hl(0, 'NormalFloat', { bg='none' })
     11         vim.api.nvim_set_hl(0, 'FloatBorder', { bg='none' })
     12         vim.api.nvim_set_hl(0, 'Pmenu', { bg='none' })
     13         vim.api.nvim_set_hl(0, 'PmenuBorder', { bg='none' })
     14 
     15         vim.opt.winborder = "rounded";
     16         vim.opt.pumborder = "rounded";
     17 
     18         vim.opt.cmdheight = 0
     19 
     20         -- Raise cmdheight to make recording status visible
     21         vim.api.nvim_create_autocmd("RecordingEnter", {
     22           callback = function()
     23             vim.opt.cmdheight = 1
     24           end,
     25         })
     26         vim.api.nvim_create_autocmd("RecordingLeave", {
     27           callback = function()
     28             vim.opt.cmdheight = 0
     29           end,
     30         })
     31       '';
     32   };
     33 }