dokwork / lualine-ex

Plugin for lualine.nvim with additional components and tools
MIT License
21 stars 1 forks source link

ex.lsp.null_ls throw error when null_ls is not found #29

Closed vladimir-popov closed 2 months ago

vladimir-popov commented 4 months ago

When null-ls plugin is not installed or is not enabled, but lualine uses the ex.lsp.null_ls component, the error happens:

Error executing vim.schedule lua callback: ...imir/.local/share/nvim/lazy/lualine.nvim/lua/lualine.lua:429: Error executing lua: ...vim/lualine-ex/lua/lualine/components/ex/lsp/null_ls.lua:57
: attempt to call field 'get_source' (a table value)
stack traceback:
        ...vim/lualine-ex/lua/lualine/components/ex/lsp/null_ls.lua:57: in function 'update_status'
        ...ir/Projects/nvim/lualine-ex/lua/lualine/ex/component.lua:146: in function 'draw'
        ...are/nvim/lazy/lualine.nvim/lua/lualine/utils/section.lua:26: in function 'draw_section'
        ...imir/.local/share/nvim/lazy/lualine.nvim/lua/lualine.lua:170: in function 'statusline'