Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The new component: ex.lsp.null_ls #26

Merged
merged 4 commits into from
Dec 29, 2023

Conversation

vladimir-popov
Copy link
Collaborator

@vladimir-popov vladimir-popov commented Dec 25, 2023

The new component shows names of the null-ls sources according to the specified query.
By default, it shows names of all sources actual to the current buffer. All duplicated names are merged.

sections = {
  lualine_a = {
    {
      'ex.lsp.null_ls',

      -- The table or function that returns the table with the source query.
      -- By default it shows only actual sorces. To show all registered sources
      -- you can use just empty table:
      -- query = {}
      query = function()
        return { filetype = vim.bo.filetype }
      end,

      -- The string separator between names
      source_names_separator = ',',

      -- The color for the disabled component:
      disabled_color = { fg = 'grey' }

      -- The color for the icon of the disabled component:
      disabled_icon_color = { fg = 'grey' }
    }
  }
}

No one source: null-ls-disabled
The jq and the spell sources are active for the current buffer:nulll-ls-enabled

Closes #25

@vladimir-popov vladimir-popov merged commit 8de69fd into dokwork:main Dec 29, 2023
3 checks passed
@vladimir-popov vladimir-popov deleted the null_ls branch December 29, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show formatters and linters instead of null_ls
1 participant