numirias / semshi

🌈 Semantic Highlighting for Python in Neovim
1.03k stars 34 forks source link

Allow consant Error Line #102

Open alexge233 opened 3 years ago

alexge233 commented 3 years ago

First of all, thanks for the plugin, it really is awesome and very useful. There's one thing I'd like to change, because it is driving me nuts. When there's no errors, all is fine, when there is an error, it jumps, resizes my left border line and keeps creating a movement/animation due to the resizing which is extremely annoying. Now, I can remove the error symbol, but that defeats the purpose of using Semsi, so I wonder if there is an option to allow that vertical border line to be constantly present so that the E> mark does not keep resizing the entire window and thus creating that animation? Point me to the direction if you can and I'll open a PR. Many thanks!

miezebieze commented 3 years ago

i would be content with an option to disable the error column so only the red block remains even semshi waiting for me to exit insert mode before it starts throwing red at me would be fine

i investigated the issue but wasn't able to solve the problem but compiled my findings so my efforts aren't in vain they might help someone else (future me included)

miezebieze commented 3 years ago

i'm unable to edit the comment the last block obviously should be:

function Stf ()
    sign define nya text=FU texthl=semshiSelf
    sign place 31313 1 nya
endfunction
autocmd FileType python call Stf ()

doesn't work; i'm tired

alexge233 commented 3 years ago

Wow, thank you so much for the work you've put in this! I might have a poke at it if I can find the free time.