todo-comments.nvim icon indicating copy to clipboard operation
todo-comments.nvim copied to clipboard

Invalid in command-line window

Open horseinthesky opened this issue 3 years ago • 6 comments

When entering command-line window with q: get error: Screenshot_2

horseinthesky avatar Mar 17 '22 15:03 horseinthesky

Me too, is your neovim version 0.7?

askfiy avatar Mar 28 '22 14:03 askfiy

Me too, is your neovim version 0.7?

Yeap, I am using nightly. But I suppose behavior of command-line history window is pretty much the same as on stable release.

horseinthesky avatar Mar 28 '22 15:03 horseinthesky

Before the pr is merged, you can use this temporary workaround

-- HACK: #104 Invalid in command-line window
local hl = require("todo-comments.highlight")
local highlight_win = hl.highlight_win
hl.highlight_win = function(win, force)
	pcall(highlight_win, win, force)
end

require("todo-comments").setup()

unavaliabl3 avatar May 18 '22 13:05 unavaliabl3

It is not a big deal for me. I open command-line windows only by mistake :D

horseinthesky avatar May 18 '22 14:05 horseinthesky

can also use this fork - https://github.com/vinnyA3/todo-comments.nvim - until https://github.com/folke/todo-comments.nvim/pull/104 gets merged

vinnyA3 avatar Jun 19 '22 00:06 vinnyA3

Same error here. I went into this when I type : and then Ctrl-F to access the ex command history.

sghng avatar Jul 19 '22 15:07 sghng

Should be fixed in #111

folke avatar Sep 03 '22 12:09 folke