coc.nvim | Nodejs extension host for vim & neovim , load extensions | Code Editor library
kandi X-RAY | coc.nvim Summary
kandi X-RAY | coc.nvim Summary
Make your Vim/Neovim as smart as VSCode.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Gets a key from a key .
- Watch build .
- creates a sequence of sequences
- Send the command callback
coc.nvim Key Features
coc.nvim Examples and Code Snippets
Community Discussions
Trending Discussions on coc.nvim
QUESTION
I understand that I can change my coc.nvim colours from inside neovim, but how do I do so permanently from the init.vim file (or otherwise), so that they're changed automatically every time I open the editor?
Default colours poor for legibility: ...ANSWER
Answered 2022-Mar-14 at 14:51My solution comes from the stackoverflow post you shared, this vi stackexchange post and learning a bit of vimscript with learning vimscript the hard way.
On your init.vim
file you can write the following:
QUESTION
This is my first question on stackoverflow, If there is any mistake, please forgive me and tell me what mistakes I made.
I used coc.nvim to automatically complete my golang source. When I typing this
...ANSWER
Answered 2022-Mar-01 at 03:45for go I preferred vim go this is the good plugging for go.
QUESTION
I have a really annoying problem with NeoVim, and I was hoping someone here would know the problem to that.
I'm using NeoVim (0.5.1) with CoC and coc-elixir (on OSX in iTerm2). The problem is that the popup with autocomplete suggestions starts pushing dashes outside the popup window, and they stay there when I close the window. Like this:
Here you can see the dashes that overflow the window.
And here you can see that the overflown dashes stay there.
I've tried disabling all my normal settings, but it still happens. The only settings I still have are these:
...ANSWER
Answered 2021-Oct-26 at 07:25Ah, for all future people, the problem was in iTerm2. I had to disable the setting 'Preferences -> Profiles -> Text -> Ambiguous characters are double-width'.
QUESTION
Hello I open file in NERDTree using t but new files is always there. Before I use vim in folder. that mean when I located in ex: app folder, I run vim without type specific files to edit. when I open files in nerd tree, new file [No Name] is always there. is anyone know how to fix it?
this is my init.vim
...ANSWER
Answered 2021-Oct-10 at 11:40To fix it, navigate to the tab which has [No Name]
open in it, and close that tab
QUESTION
I'm using Coc with coc-pyright and as suggested in the documentation I edited my coc-settings.json to display :
...ANSWER
Answered 2021-Oct-08 at 11:33By default, coc-pyright runs Pylint with a limit rules that ignore the chained-comparison
.
This has been fixed in latest coc-pyright, :CocUpdate
to latest release and try again.
QUESTION
I'm trying to switch from vscode to neovim. I have coc.nvim
configured for pyright
but now neovim
provides native support for language-server
. So I tried to configure python-language-server
. I have installed pyls
by pip install python-language-server
. I went through the documentation for lsp-quickstart
. It says that I just need to add neovim/nvim-lspconfig
to my plugins and then add lua require('lspconfig').pyls.setup{}
to my init.vim
. After refreshing I'm getting Error:
ANSWER
Answered 2021-Oct-02 at 09:40Hey so it looks like there is a new fork of pyls. I had the same issue and the following worked for me!
See Here:
https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md#pylsp
And Here:
https://github.com/python-lsp/python-lsp-server
Try:
QUESTION
I've been trying to move to nvim as my code editor, but I've been having issues with using the code formatting. For now I want to set it up for python and every time I tried to perform a format operation, I get the following error:
...ANSWER
Answered 2021-Sep-23 at 07:34The error is came from coc-python, but coc-python is deprecated, https://github.com/neoclide/coc-python#coc-python, try coc-pyright or coc-jedi.
QUESTION
I have a file work.go
opened in vim-go
. It's in package oldpackagename
.
I want to refactor and rename it to newpackagename
. Is there some tooling for that? The reason is, the initial assumptions for oldpackagename
do not apply anymore.
I know I can do search and replace stuff, but usually either
GoRename
resp.nmap rn (coc-rename)
work just fine on automatically renaming all occurrences.
But for the package name, I get:
vim-go: [rename] SUCCESS vim-go: cannot rename the identifier at the requested position for
GoRename
and:
[coc.nvim] Error on rename: The element can't be renamed. for
coc.nvim
.
Is package renaming different? Do I have to use search/replace or are my configs maybe corrupted?
...ANSWER
Answered 2021-Aug-04 at 23:27Under the hood, vim-go uses either gorename
or gopls
to run :GoRename
; the default is now gopls
.
Both of these don't support renaming packages:
- Open issue for
gopls
to support package renaming - An explicit mention of "package renaming" as a TODO feature in the
gorename
source code
For coc.nvim, I'm not sure, but it seems to integrate with gopls
, so the same lack of support would apply.
QUESTION
coc.nvim: The word 'self', numbers([0-9]) as well as strings don't show in CocAction(doHover); the attached image as an example. This is the case in parameters and arguments in documentation provided by coc.nvim
for rust analyzer.
When I highlight and copy the text, they appear. I think it's a problem of them having the same color as the background.
Help please
...ANSWER
Answered 2021-Jul-31 at 10:14Solved it by using base16 vim -> https://github.com/chriskempson/base16-vim and applying the settings in the readme
QUESTION
I was trying to change my coc.nvim autocomplete key, and found this question in Stack Overflow, but the guy who answer this question doesn't explain really good how to customize it as you want, so I will explain it to help the NeoVim users that are racking the brain for this as I was.
...ANSWER
Answered 2021-May-03 at 14:20If you want to bind Tab for autocompletion, paste this in your .vimrc or init.vim
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install coc.nvim
Completion with sources
Using the configuration file
Using coc extensions
Configure language servers
F.A.Q
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page