Neko Box Coder
Neko Box Coder
@dmaluka Yeah fair enough, I get what you mean. I added a function that adds a cursor to a buffer and reverted the previous changes.
> since with `"*.cpp"` the setting is associated with the file name, not with the file type, so it should not change after `set filetype`. It does change currently when...
Actually, even for custom filetypes that are not "overriding" the default, this bug would still manifest because of the if statement https://github.com/zyedidia/micro/blob/21bb61c5ff3cd4cd11adbd521657df90d50f54c7/runtime/plugins/comment/comment.lua#L67-L75
Okay, how about now @dmaluka @JoeKar I have added a setting called `commentfiletype` (although I am leaning towards calling it `internal_commentfiletype` to make it clear it is for internal use)...
@JoeKar Thanks a lot. Yeah your approach is much better. It is working as expected now. I also added an error message when the old option is being used to...
> 1. I'm not sure we should show this noisy warning about `commenttype` vs `comment.type`. Wouldn't it be friendlier to silently support `commenttype` (especially since in [f12b941](https://github.com/zyedidia/micro/commit/f12b9410a2b8fc2906efb15c50479aa781ca9134) we already support...
@dmaluka No, I don't think it should auto-complete different things. I think most of the scenario users would place their cursors on the same text occurrence to complete. Although slightly...
> > I think most of the scenario users would place their cursors on the same text occurrence to complete. > > So in those scenarios when they don't, we...
> I imagine it should not be difficult to add corresponding checks, for example by iterating the cursors not in `Buffer.CycleAutocomplete()` as you do but in `BufPane.Autocomplete()` instead. What checks...
A proper outline would require sending requests and parsing responses from LSP, maybe with [Document Symbols Request](https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#textDocument_documentSymbol) I personally don't use LSP but we do have some [LSP plugins](https://github.com/zyedidia/micro/discussions/3231) however...