1. 28 Dec, 2021 1 commit
    • Jeff Pitman's avatar
      builder: bugs in is_empty_section · 332d4494
      Jeff Pitman authored
      The current way to parse the statusline content and decide whether a
      section is empty, has some flaws:
      
      That is for the following reasons:
      - accents are considered to be empty (which they really shouldn't)
      - manually parsing the expressions using a
        `:while ... matchlist() ... endwhile` loop is slow and fragile
      - grouping items such as %( %) are not considered
      
      So replace the logic by using `substitute('pat', '\=add()', '')` to
      capture all single expression groups into a list and then looping over
      those to decide whether the section is empty.
      
      fixes #2411
      332d4494
  2. 21 Dec, 2021 1 commit
  3. 18 Dec, 2021 1 commit
  4. 14 Dec, 2021 1 commit
  5. 10 Dec, 2021 1 commit
  6. 08 Dec, 2021 1 commit
    • Christian Brabandt's avatar
      virtualenv: Enable for additional filetypes beside python · bf5d7859
      Christian Brabandt authored
      So with https://github.com/jmcantrell/vim-virtualenv you can display the
      virtualenv in your statusline section (if you have enabled it). However
      it would only become active for python buffers.
      
      Now perhaps you want to show the virtualenv also in other filetypes like
      markdown or CI scripts, so allow this by adding a variable
      `airline#extensions#virtualenv#ft'` to the list of filetypes you want to
      have enabled. So set:
      
          let g:airline#extensions#virtualenv#enabled = 1
          let g:airline#extensions#virtualenv#ft = ['python', 'markdown']
      
      To allow displaying the virtual environment for python and markdown
      buffers (but remember you need to have the plugin
      https://github.com/jmcantrell/vim-virtualenv installed as well!)
      
      fixes #2483
      bf5d7859
  7. 05 Dec, 2021 2 commits
    • Gauravsingh Sisodia's avatar
      main: ignore popup windows for inactive windows · 8e36c0a8
      Gauravsingh Sisodia authored
      When openning popup (vim) or floating (neovim) windows,
      do not consider those windows for disabled windows. That is, leave the
      main window in activate state instead of marking it disabled
      
      closes: #2387
      8e36c0a8
    • Christian Brabandt's avatar
      tabline: Give error message, if switching buffers is not possible · de73a219
      Christian Brabandt authored
      When using Neovim and switching to another buffer with the mouse and the
      current buffer is modified, Vim refuses to switch buffers rightfully,
      if the user has not set 'hidden' or 'autowrite' (because it is going to
      unload the buffer from memory).
      
      So catch this case and let the user know.
      
      Note: :b! would be another possibility, but I do not prefer using this
      attribute, because it is not clear what happens to the current buffer. I
      think it is made hidden, but I prefer to be explicit here
      
      closes #2478
      de73a219
  8. 26 Nov, 2021 3 commits
  9. 25 Nov, 2021 2 commits
  10. 19 Nov, 2021 1 commit
    • Michael Monsivais's avatar
      taglist: load taglist variants only once · 6716572b
      Michael Monsivais authored
      Because Tlist_Get_Filenames() only exists within yegappan/taglist,
      TlistUpdate was being envoked on every call when using other taglist
      versions.(Like vim-scripts/taglist.) This caused visual artifacts and
      slowdowns.
      
      We now check for a function from both taglist variants to see if either
      one has been loaded.
      6716572b
  11. 12 Nov, 2021 4 commits
    • Christian Brabandt's avatar
      Merge pull request #2462 from KSR-Yasuda/feature/CustomSpellCheckCommand · 4b96f589
      Christian Brabandt authored
      Custom Spell Check Command Support
      4b96f589
    • Indelog's avatar
      taglist: correctly check for right taglist plugin · ec761c2a
      Indelog authored
      Avoid the error `Unknown function: taglist#Tlist_Get_Tagname_By_Line`
      when using the old tag tlist plugin in a different way.
      
      this means, we have to revert 58410396
      since exists() does not handle autoloaded functions correctly.
      
      We can only check it, after we have used the taglist plugin, so that the
      autoloading has happened. That means, move the exists() call after the
      `:TListUpdate` call which will correctly autoload taglist and then
      exists() can check for the existence of the
      `taglist#Tlist_Get_Tagname_By_Line()` function correctly.
      
      closes: #2463
      ec761c2a
    • Christian Brabandt's avatar
      taglist: check that correct function exists · 58410396
      Christian Brabandt authored
      So 47bf6b17 added support for
      yegappan/taglist plugin, but unfortunately the old (deprecated)
      vim-scripts/taglist.vim repo still exists and this one throws an error
      when trying to access taglist#Tlist_Get_Tagname_By_Line
      
      So check, that this function is defined before trying to load the
      extension
      58410396
    • yasuda's avatar
      Custom spell check command support · 646dd0a1
      yasuda authored
      - Add an option `g:airline_spell_check_command`
      646dd0a1
  12. 11 Nov, 2021 3 commits
  13. 10 Nov, 2021 1 commit
  14. 09 Nov, 2021 1 commit
    • Dood of Distinction's avatar
      Modifies the wordcount to use the vimtex wordcount function when editing TeX... · e542f5e9
      Dood of Distinction authored
      Modifies the wordcount to use the vimtex wordcount function when editing TeX files and the vimtex plugin is loaded.
      
      With help from Karl Lervag's suggestion on how to reliably tell when the
      above mentioned conditions are the case for the current buffer
      
      Checked to work with other filetypes that use the wordcount in
      vim-airline, and these seem to work as before.
      
      Also checked that if two of these filetypes (one TeX and the other
      another type, such as markdown) the two coexist peacefully, with TeX
      using Karl's wordcount function, and the other using the (I assume)
      native wordcount?
      
      Fixed comment wording
      e542f5e9
  15. 03 Nov, 2021 5 commits
  16. 02 Nov, 2021 1 commit
  17. 01 Nov, 2021 1 commit
    • Bea Hughes's avatar
      Add vim-rufo extension support to section z. · 6800c9ea
      Bea Hughes authored
      Displays whether you have the ruby formatter enabled or not for the
      session you are in.
      
      Enable with:
      let g:airline#extensions#rufo#enabled = 1
      
      Configure with:
      let g:airline#extensions#rufo#symbol = '💎'
      6800c9ea
  18. 26 Oct, 2021 1 commit
  19. 10 Oct, 2021 1 commit
  20. 21 Sep, 2021 2 commits
  21. 10 Sep, 2021 1 commit
  22. 16 Aug, 2021 1 commit
  23. 11 Aug, 2021 1 commit
  24. 10 Aug, 2021 1 commit
  25. 09 Aug, 2021 2 commits