GithubHelp home page GithubHelp logo

custom-litexl's Introduction

My custom lite-xl plugins

these are lite-xl plugins that I've modified to my liking, or created for my own purposes.

Most are just mods, but there is one of note.

linter.lua is modified to support LSP diagnostics. To enable this, simply put linter.lua and lintplus.lua in your plugins folder.

Note: DO NOT install any linters meant for lintplus, they will not work with this modded linter plugin.

my init.lua is also here.

enjoy :)

custom-litexl's People

Contributors

not-a-web-developer avatar vincens2005 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

custom-litexl's Issues

Minimap Support for Linter

Add this code to the end of linter.lua for marking errors and warnings on the Minimap plugin. Putting it here in case there's a possibility of it being merged or for other people that want this functionality. This feature is soon to be added in lintplus, and I simply replicated the functionality for linter.

-- -------------- Minimap Integration ----------------

core.add_thread(function()
  local minimap_found, MiniMap
  if config.plugins.minimap ~= false then
    minimap_found, MiniMap = pcall(require, "plugins.minimap")
  end
  if minimap_found then
    local MiniMap_line_highlight_color = MiniMap.line_highlight_color
    function MiniMap:line_highlight_color(idx, dv)
      if dv then
        local cached = cache[dv.doc]
        if not cached then goto fail end

        local line_warnings = cached[idx]
        if not line_warnings then goto fail end
        -- Ignore if the line has changed
        -- if line_warnings.line_text ~= doc.lines[idx] then goto fail end

        return style.lint[line_warnings[1].type] or style.lint.warning or style.syntax.literal
      end
      ::fail::
      return MiniMap_line_highlight_color(self, dv, idx)
    end
  end
end)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.