Questions tagged [neovim]
The neovim tag has no usage guidance.
22
questions
1
vote
0
answers
18
views
Neovim keybinding for LSP "code action" with options
I use neovim and neovim-lsp-config with clangd.
The default keybind for code actions is <space>ca, after pressing which a menu pops up. Usually there is just one option, so having to choose it ...
0
votes
1
answer
87
views
Coc nvim suggestion selection
I have installed the plugin and also I can see the suggestions. But I am unable to select it I have tried enter, tab, space but still I can’t select it. I have to complete it myself and it is really ...
1
vote
1
answer
466
views
NeoVim coc.nvim enter key doesn't work to autocomplete
Recently I rewrote my NeoVim config file from vim script to lua and everything is working fine, but I have one issue. When I'm using coc.nvim for autocompletion and I select something, hit enter, ...
0
votes
1
answer
9
views
How to have neovim open a new pane in tmux without switching to it?
This command allows for a new pane to open:
:silent !tmux split-window -h<CR>
But the problem is that my cursor switches to the new pane and I am forced to switch back. How do I turn off the ...
0
votes
0
answers
62
views
Is it ok to always to yank text to clipboard?
I'm currently switching to NeoVim using Mac, and unfortunately the yank key doesn't always work as I expect.
I currently use :%w !pbcopy to copy entire documents.
Is there any problem if I remap the ...
0
votes
1
answer
23
views
How do I fix "E302: Could not rename swap file" when using neovim as my MANPAGER with a non-default swap directory?
I'd like to use neovim to view man pages. To accomplish this, I have the following set in my .bashrc file:
export MANPAGER='nvim +Man!'
On my MacOS system this gives me no problems. But on my Linux ...
1
vote
0
answers
39
views
Avoid indenting the next line of a list in a markdown file
NVIM version v0.6.1
Suppose I am writing a list in markdown and let's say that the cursor is on the item3. Now, doing o in normal mode or Enter in insert mode automatically indents the next line.
+ ...
0
votes
0
answers
17
views
threejs autocompletion on nvim
i want autocompletions for three.js in nvim , kind of like the autocompletions we get if we open three.js file on a split window on vim [still not good], i searched in coc language plugins list, i ...
0
votes
0
answers
22
views
whitespace at beginning of lines with multi-line output in neovim terminal
In a neovim terminal, when I enter "ls" command, I get this output.
With echo:
I find that the next line begins at end of last line.What is a probable cause? There is no problem with vim ...
0
votes
0
answers
906
views
How to configure jdtls for nvim?
I'm trying to configure jdtls on a Lua based nvim environment following the video of the following series.
I could install the jdtls LSP server and it seems to work fine. When opening a Java file, it ...
0
votes
0
answers
40
views
Neovim - gf equivalent but for an adjacent, existing split
My typical workflow involves having a large "main" split, with a smaller split below for a terminal. When I get a stack trace, I'd like to be able to use gf to go to that location in the ...
0
votes
0
answers
87
views
Is there any way to display CPU, memory information in vim's status bar?
Is there any way to display CPU, memory information in vim's status bar?
I use vim mostly on my own computer, so I don't want to use tmux.
My vim is neovim and the version is v0.6.1.
My OS is Manjaro ...
0
votes
0
answers
34
views
LSP server for python autocomplition (Neovim)
i can't setup LSP server on my desktop. Because all resources in English language, but i am russian. Can u help me with this problem. Any instructions or resources that can help are welcome.
I use ...
0
votes
0
answers
3
views
Why when I press t in normal mode :tag appears instead of till motion
New neovim user here.
I'm intrigue why if I press the t in normal mode I get :tag in the command pane instead of the until movement.
Is it some configuration that changes default behavior?
Thanks
0
votes
0
answers
108
views
After I use nvim-qt, the background color of the floating window changes, how can I make it consistent with nvim under the terminal?
The nvim theme in my terminal looks like this:
But with nvim-qt it becomes this:
How do I configure nvim-qt so that its floating window is the same as nvim in the terminal?
nvim version: v0.6.1
nvim-...
0
votes
2
answers
519
views
How can I configure shortcut keys in all modes of vim?
I want to configure a shortcut key that can be used in both edit mode and normal mode, usually two commands are required:
:nnoremap <C-s> :w<cr>
:inoremap <C-s> <esc>:w<cr&...
0
votes
0
answers
94
views
How does vim set indentation for json files?
Other files, like .c, .cpp, .java, etc., I like to indent 4 spaces, but with only .json files, I like to indent 2 spaces.
How can I configure vim for this purpose?
I know it's possible to do :!%jq . ...
1
vote
1
answer
171
views
Command Prompt Black Screen NVIM
I'm facing a really annoying issue with CMD these days.
When attempting to launch neovim on Windows, the display is full black and I don't see any output.
Issue is the same when I SSH into a Linux ...
0
votes
0
answers
425
views
How come root directory is not detected by "lspconfig" when loading "emmet_ls" client server?
After a recent update, "lspconfig" could no longer detect the client server "emmet_ls." I follow the installation process exactly as followed:
install client server with npm
npm ...
0
votes
0
answers
58
views
How do I prevent warnings window on save with ray-x/go.nvim Neovim plugin?
I installed ray-x/go.nvim, with my init.lua file looking like this:
require "paq" {
"savq/paq-nvim",
"neovim/nvim-lspconfig",
"ray-x/go.nvim&...
0
votes
0
answers
170
views
Why isn't neovim opening the terminal?
Whenever I enter the command ! in neovim, I get shell failed to start: no such file or directory: /usr/bin/bash. However in vim it works perfectly fine.
set shell? is shell=/usr/bin/bash for both vim ...
1
vote
2
answers
2k
views
undefined global 'vim' in lua-language-server - coc.nvim
This snippet gives a warning:
local api = vim.api #Undefined global 'vim'
my CocConfig:
` "languageserver": {
"lua": {
"command": "/home/manas/.config/...