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

Auto open and auto close doesn't work #29

Closed
winston0410 opened this issue May 14, 2021 · 3 comments
Closed

Auto open and auto close doesn't work #29

winston0410 opened this issue May 14, 2021 · 3 comments
Labels

Comments

@winston0410
Copy link

Hi, thank you for making such an awesome plugin. I notice that the auto_open and auto_close doesn't work.

This is my configuration

local function init(paq)
	paq{'folke/trouble.nvim'}
	require'trouble'.setup{
		position = "left",
		width = 30,
		use_lsp_diagnostic_signs = true,
		indent_lines = false,
		auto_open = true, 
		auto_close = true,
	}
	vim.api.nvim_set_keymap("n", "<C-l>", "<cmd>Trouble lsp_document_diagnostics<cr>",
	{silent = true, noremap = true}
	)
end

return {
	init = init
}
@folke
Copy link
Owner

folke commented May 14, 2021

I'll check tonight once I'm home. Thank you for reporting!

folke added a commit that referenced this issue May 15, 2021
@folke
Copy link
Owner

folke commented May 15, 2021

I just pushed a fix for this. Let me know if you have any more issues.

@folke folke added the done label May 15, 2021
@folke folke closed this as completed May 18, 2021
@alex-popov-tech
Copy link

alex-popov-tech commented Sep 16, 2021

hey @folke, same issue with auto_*, config:
plugins/init.lua

    {"folke/trouble.nvim", requires = "kyazdani42/nvim-web-devicons", config = require('plugins.trouble-nvim')}

plugins/trouble-nvim.lua

return function()
    require("trouble").setup(
        {
            mode = "lsp_workspace_diagnostics", -- "lsp_workspace_diagnostics", "lsp_document_diagnostics", "quickfix", "lsp_references", "loclist"
            auto_open = false,
            auto_close = false,
            use_lsp_diagnostic_signs = true
        }
    )
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants