python lsp setup
Setting up python with the native nvim>0.5 lsp was mr
https://github.com/neovim/nvim-lspconfig
lua << EOF require'lspconfig'.pyright.setup{} EOF
pyls#190 ¶ #
https://github.com/palantir/python-language-server/issues/190
...
All posts with the tag "vim"
Setting up python with the native nvim>0.5 lsp was mr
https://github.com/neovim/nvim-lspconfig
lua << EOF require'lspconfig'.pyright.setup{} EOF
https://github.com/palantir/python-language-server/issues/190
...
I’ve long used neovim from within windows wsl, and for far too long, I went without a proper way to get text out of it and into windows.
wsl can access clip.exe. You can do some cool things with it, such as cat a file into the clipboard, sending output from a command to the clipboard, or set an autocmd group in vim to send yank to the windows clipboard.
Let’s say you want to send a teammate the tail of a log file over chat. You can tail the file into clip.exe.
...
Replacing text based on whats in the current search register is a quite handy tool that I use often. I believe I picked this tip up from Nick Janetakis, check out his YouTube channel for some amazing vim tips.
https://www.youtube.com/watch?v=fP_ckZ30gbs
If there is one thing that I Like most about vim it’s the ability to hack on it and make it work well for you.
...
If you are like me, you have created a macro or two that is pure glory, and you forget how you made it after a day or so, or you immediately want to store it away as a custom keybinding. As with most things with vim, it’s easy to do once you understand it.
One of the earliest things we all learn to do in vim is to create macros, custom sets of functionality stored in a register that can be replayed later.
To create a macro, get into normal mode, then type q followed by a letter that you want to store the macro under.
...
Replacing text in vim can be quite frustrating especially since it doesn’t have live feedback to what is changing. Today I was watching Josh Branchaud’s Vim-Unalphabet series on Youtuve and realized that his vim was doing this and I had to have it.
https://twitter.com/_WaylonWalker/status/1346081617199198210
I had to do a bit of searching and found a great post from vimcasts that shows exactly how to get the live search and replace highlighting using inccomand
...
Vim’s (neovim in my case) location list can provide some very useful information while developing. Mine gives me information about linting and type checking errors with fairly little config. Generally, it sits nicely at the bottom of the screen and barely affects me. Other times, especially while zoomed way in during a presentation, it just gets in the way.
Location List eating up the screen while I am zoomed in and trying to live code
Through some google search I found the culprit was syntastic. It has an auto_loc_list feature. We can turn it off by setting syntastic_auto_loc_list=0.
...
I have gone quite awhile without using c and instead using d. The reason that I started using c is because it automatically places you into insert mode. This not only saves me one keystroke for commands such as diwi is now ciw, but it also works with the repeat . command!!! This is huge. When refactoring a document I had been creating a macro to change one word to another, using c instead of d allows the use of the . rather than needing to create a macro.
...