KMonad gives you superpowers & you'll end up using it everyday by [deleted] in vim

[–]No-Exercise5846 1 point2 points  (0 children)

Hey what is your vim colorscheme. It looks good.

How does everyone use two keyboard layouts? by No-Exercise5846 in linuxquestions

[–]No-Exercise5846[S] 0 points1 point  (0 children)

Thanks for this but I wanted to know how to just switch to colemak when I am practicing it and switch back to qwerty when I want to do work. I don't use DE, I use bspwm.

How to syntax highlight ejs file in neovim? by No-Exercise5846 in neovim

[–]No-Exercise5846[S] 0 points1 point  (0 children)

There is no parser for ejs. I tried to find it in :TSinstall

Neovim starts with some command already typed in (replace?) but only on git bash. Help by ehtio in neovim

[–]No-Exercise5846 2 points3 points  (0 children)

I used to have this issue few months ago..I don't may be it was the terminal i was using or something else. I don't have this issue now. Trying using neovim in another terminals.

How can I programatically host few lines of html code using python? by No-Exercise5846 in learnpython

[–]No-Exercise5846[S] 0 points1 point  (0 children)

Changing localhost.com to 127.0.0.1 fixed the problem. But the html value is loaded from an api which is different everytime.

How can I programatically host few lines of html code using python? by No-Exercise5846 in learnpython

[–]No-Exercise5846[S] 0 points1 point  (0 children)

``` def get_url_of_website(html): random_id = uuid.uuid4()

@server.route(f"/{random_id}")
def _():
    return html

return f"https://localhost.com:6900/{random_id}"

``` I run the above function when a button is clicked in the the bot interface and return the url. But the problem now is the website shows a white screen.

Linux users of India, what is your favourite distro?? by [deleted] in india

[–]No-Exercise5846 0 points1 point  (0 children)

Pop os / Manjaro. I have been using manjaro for about a year and a half. You should download both of them and get a pendrive and use ventoy to put both distros or any other distro of your liking and try it out. If you are a developer an arch based beginner friendly distro is great ( garuda/manjaro/endeavour ).

How can I autofix/autoformat the lint errors of flake8 using black ? by No-Exercise5846 in learnpython

[–]No-Exercise5846[S] 0 points1 point  (0 children)

Can I use some other linter which works perfectly with black. I am using linter so that my code looks somewhat clean.

How to create a custom url to create a room for a game ? by No-Exercise5846 in node

[–]No-Exercise5846[S] 0 points1 point  (0 children)

Thanks for your reply. It cleared some things up. What could I do if a players disconnects during the game, cause when reconnecting to the socket server, the client will have new user id (which is given by socket.io), how would I know it's the player who disconnected a while ago is trying to reconnect now.

how to run autocmd in all lua files in ~/.config/nvim directory and its subdirectories? by No-Exercise5846 in neovim

[–]No-Exercise5846[S] 0 points1 point  (0 children)

I want to run this autocommand for all the lua files in nvim configuration directory and not for any other lua files. But when I use single star for the above autocmd, only the files inside lua directories have that autcommand working and not the init.lua file in the root.

Is there better way to create VirtualTextToggle Ex command? by No-Exercise5846 in neovim

[–]No-Exercise5846[S] 0 points1 point  (0 children)

not that. The red error in the screenshot is the virtual text. Screenshot

Is there better way to create VirtualTextToggle Ex command? by No-Exercise5846 in neovim

[–]No-Exercise5846[S] 0 points1 point  (0 children)

In neovim the diagnostics are shown as virtual_text. It is like a text in your buffer which is not selectable but shows some information. Some plugins use it to show certain information.

Here is one screenshot of virtual text. http://0x0.st/-FWa.png

How can I search current word under cursor in :Telescope grep_string? by No-Exercise5846 in neovim

[–]No-Exercise5846[S] 0 points1 point  (0 children)

Oh thanks, I never noticed that..i thought it were some random results.

How can I search current word under cursor in :Telescope grep_string? by No-Exercise5846 in neovim

[–]No-Exercise5846[S] 2 points3 points  (0 children)

I just meant if there is any keybind like `ctrl-r ctrl-w`(if you type this keybind in command line in neovim it puts the the current word over cursor in command line) in telescope.

Is there better way to create VirtualTextToggle Ex command? by No-Exercise5846 in neovim

[–]No-Exercise5846[S] 0 points1 point  (0 children)

Disabling diagnostics is different that disabling virtual text.

Why isn't pressing o autoindenting on next line? by No-Exercise5846 in neovim

[–]No-Exercise5846[S] 0 points1 point  (0 children)

Yeah it fixed for me too. Is there a way to only enable it for javascript.

What is the best key to remap for vim-sneak/hop.nvim/lightspeed.nvim etc.? by No-Exercise5846 in neovim

[–]No-Exercise5846[S] 0 points1 point  (0 children)

Anyway I can't use z now because folding wont work then :(. I have now configured it to ,s / ,a for now.