Giter Club home page Giter Club logo

Comments (5)

brianaung avatar brianaung commented on May 27, 2024

Hey there!

I tried to reproduce the error using this minimal config with none-ls linter but could not replicate it.

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
    vim.fn.system {
        "git",
        "clone",
        "--filter=blob:none",
        "https://github.com/folke/lazy.nvim.git",
        "--branch=stable",
        lazypath,
    }
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup {
    {
        "nvimtools/none-ls.nvim",
        dependencies = {
            "nvim-lua/plenary.nvim",
        },
        config = function()
            local null_ls = require("null-ls")
            null_ls.setup {
                sources = {
                    null_ls.builtins.diagnostics.selene,
                },
            }
        end,
    },
    {
        "brianaung/yasl.nvim",
        config = function()
            require("yasl").setup {
                enable_icons = true,
            }
        end,
    },
}

Which linter are you using? Can you provide me a bit more info so I can look into this further?

from yasl.nvim.

brianaung avatar brianaung commented on May 27, 2024

My guess is that the linter you use does not attach to lsp (unlike none-ls), that's why it was not working.

The specific check for copilot client shouldn't be needed anymore (I used to display different status for LSP "OFF"/active but copilot was messing with it, but that's no longer the case). But I still would like to prevent unnecessarily calling the rest of the functions when there are no clients attached.

from yasl.nvim.

mathjiajia avatar mathjiajia commented on May 27, 2024

yes, I am using https://github.com/mfussenegger/nvim-lint so any diagnostics from the linter will not be displayed on the statusline.

from yasl.nvim.

brianaung avatar brianaung commented on May 27, 2024

Hey the fix has been merged.

I have tested it and it works. let me know if the error still persists.

from yasl.nvim.

mathjiajia avatar mathjiajia commented on May 27, 2024

it works fine, thank you.

from yasl.nvim.

Related Issues (2)

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.