nvim-config

Log | Files | Refs | README

mini-config.lua (1049B)


      1 require 'mini.comment'.setup()
      2 require 'mini.pairs'.setup {
      3   modes = { insert = true }
      4 }
      5 require 'mini.colors'.setup()
      6 require 'mini.surround'.setup {
      7   mappings = {
      8     add = 'sa',
      9     delete = 'sd',
     10     find = 'sf',
     11     find_left = 'sF',
     12     highlight = 'sh',
     13     replace = 'sr',
     14     update_n_lines = '',
     15   },
     16 }
     17 
     18 local hipatterns = require('mini.hipatterns')
     19 hipatterns.setup({
     20   highlighters = {
     21     -- Highlight standalone 'FIXME', 'HACK', 'TODO', 'NOTE'
     22     fixme     = { pattern = '%f[%w]()FIXME()%f[%W]', group = 'MiniHipatternsFixme' },
     23     hack      = { pattern = '%f[%w]()HACK()%f[%W]', group = 'MiniHipatternsHack' },
     24     todo      = { pattern = '%f[%w]()TODO()%f[%W]', group = 'MiniHipatternsTodo' },
     25     note      = { pattern = '%f[%w]()NOTE()%f[%W]', group = 'MiniHipatternsNote' },
     26 
     27     -- Highlight hex color strings (`#rrggbb`) using that color
     28     hex_color = hipatterns.gen_highlighter.hex_color(),
     29   },
     30 })
     31 
     32 require('mini.ai').setup {}
     33 
     34 require 'mini.notify'.setup {
     35   window = {
     36     config = {
     37       border = "none"
     38     }
     39   }
     40 }