Questions tagged [neovim]

A project that seeks to refactor Vim. Use this tag for questions specifically regarding Neovim-only features (i.e. features not found in Vim and other Vi-like editors).

Filter by
Sorted by
Tagged with
1 vote
0 answers
42 views

Pasting via "p" not working in normal mode in Telescope

If I open Telescope for file or text search and switch to normal mode within the Telescope prompt and press p, nothing happens. Does anyone know how I can enable pasting via p in normal mode in ...
user avatar
  • 535
0 votes
1 answer
41 views

Neovim source code: what is if_true in options.lua?

The defaults that Neovim has are specified in src/nvim/options.lua. I'm trying to understand this source, Let's take for example, something like backup { full_name='backup', abbreviation='bk'...
user avatar
0 votes
1 answer
474 views

CTRL-SHIFT-P is not working on `neovim`

Below lines are part of my .vimrc. map <C-S-p> :CtrlPCmdPalette<CR> let g:ctrlp_cmdpalette_execute = 1 It's working fine on normal vim, but not working with neovim. My neovim init file ...
user avatar
  • 103
0 votes
1 answer
370 views

How do I close a hover'ed window with LSP information, Escape does not work?

Whenever I open a hover window with my LSP plugin, :lua vim.lsp.buf.hover() I get a floating window hovered over text, but then I can not close it? I've tried ESC and the like. How do you close these ...
user avatar
1 vote
1 answer
44 views

How can I re-run my init.lua?

If I'm making changes in my init.lua file, is there anyway to have those changes reflect in my current copy of Neovim without restarting the editor? Not limited to mappings, but is there something ...
user avatar
0 votes
1 answer
160 views

super key not working in neovim on linux

I'm trying to create a shortcut, but I can't get vim to recognize my super key. I tried the following combinations: lvim.keys.normal_mode["<A-h>"] = ":BufferLineCyclePrev<cr>...
user avatar
  • 535
0 votes
0 answers
52 views

Nerdtree Tab witdth - how do I change the size?

When I press t in nerdtree, it opens the file in a new tab. But the tabs are very small. How do I make them longer (span the page)?
user avatar
  • 105
1 vote
2 answers
216 views

Where does neovim store its defaults? Where is the defaults.vim for neovim?

On regular vim, you can find the defaults in defaults.vim. These are sourced when there is no .vimrc, or when you include in your .vimrc the following, source $VIMRUNTIME/defaults.vim " Source ...
user avatar
1 vote
0 answers
66 views

How does .vimrc relate to ~/.config/nvim/init.lua?

When I heard neovim had a "native language client", I wanted to trying moving it. Previously, I was using a language server loaded through vim-plug. This was always problematic. When I ...
user avatar
2 votes
1 answer
137 views

Is the goal of Lua in neovim to replace Ex, and if not what is it?

I am a new user to neovim, and a moderator on this site said You seem to imply that you expect there should be a native way to run [filetype] (and to some extent every Ex command) directly in Lua. ...
user avatar
1 vote
1 answer
387 views

How can I find what Lua API functions are supported in my Neovim?

When I try to run the following code in my conf or under :luado vim.api.nvim_create_autocmd({"BufNewFile", "BufRead"}, { pattern = {"*.t"}, callback = function () ...
user avatar
0 votes
1 answer
163 views

How do you set terminal options like t_Co in neovim?

When I put into my ~/.config/nvim/init.lua vim.opt.t_Co = 256 I get E5113: Error while calling lua chunk: vim/_meta.lua:659: Not a valid option name: t_Co But there is an option in vim called t_Co. ...
user avatar
-1 votes
1 answer
137 views

How can I port nmap, map, and imap commands to Lua configuration?

How can I port map commands in my vimrc file to Neovim lua configuration? For example: nmap <silent> <F2> <Plug>(lcn-rename)
user avatar
0 votes
2 answers
607 views

How do I port a filetype command to neovim's lua format?

Currently my .vimrc file has this in it, filetype plugin indent on -- filetype detection[ON] plugin[ON] indent[ON] How can I port filetype plugin indent on to neovim's lua format?
user avatar
0 votes
1 answer
155 views

neovim lsp configuration

I'm a begginer in vim/neovim world. I understand that lsp is for autocompletion, auto import, signature info, etc... So I have installed coc.nvim. But I have some question about the concept : if I ...
user avatar
  • 101
0 votes
0 answers
50 views

How can I make the NeoTerm command start halfway down the screen?

I have a bunch of macros that invoke the :T <command> functionality of Neovim's neoterm plugin. But as you can see, it creates the terminal right near the top of the screen: This forces me to ...
user avatar
0 votes
1 answer
188 views

How to set prettier indents?

I have set tabstop to 4. But when I use prettier, it defaults my indentations to 2 spaces. How do I change this? I am using the coc prettier extension. const thing = () => { var hi = 1; //...
user avatar
  • 105
0 votes
0 answers
34 views

Adding new line characters after a specific amount of bytes

I'd like to add new line characters after every specific number of bytes in binary mode. I tried this script but the repetition count depends on the number of characters not bytes. Like when there is ...
user avatar
  • 101
0 votes
0 answers
54 views

NERDTree: open/close directories with arrow keys

I would like to be able to open and close folders within NERDTree with the right and left arrow respectively, instated of having to use the enter key. I tried the following keybind, without success : ...
user avatar
  • 101
1 vote
0 answers
38 views

How to visually select entire broken line in NeoVim terminal

(I'm using NeoVim, vsplit term://zsh) If I have a long terminal line that gets broken, and go into visual mode in order to copy something, selecting the entire line does not work as I expect: |$ ...
user avatar
1 vote
1 answer
33 views

Word motion as though non-keyword characters were whitespace

I'm very new to vi, so sorry if this is a dumb question. I've recently learned about the list of keyword characters, and I've noticed that vi treats strings of characters not in that list as words ...
user avatar
0 votes
0 answers
32 views

Cycle through popup list without arrow keys?

I am faily new to vim/nvim. To assist my learning I have disabled arrow keys: nnoremap <right> <Nop> nnoremap <left> <Nop> nnoremap <down> <Nop> nnoremap <up> ...
user avatar
  • 105
0 votes
0 answers
602 views

How to install sumneko_lua

I'm a Mac user with complete lua config. I have tried installing sumneko_lua in Neovim 0.6.1 several times but without success. Frustration led me to open this question. I have also read and tried to ...
user avatar
  • 113
0 votes
0 answers
22 views

NVim weirdness when exiting terminal

I have my own syntax file for latex. When opening a :terminal in a new tab, and typing $ exit, or when launching a :terminal and exiting, the syntax changes to the out-of-the-box syntax.* What is ...
user avatar
  • 121
0 votes
1 answer
143 views

How can we get the third mouse option with cut,copy paste in neovim?

I am new to neovim and using the default terminal in ubuntu for neovim. With the default terminal, we can click the right mouse and get the functioning options for cut,copy and paste. How can I get ...
user avatar
  • 103
1 vote
1 answer
34 views

Ignore the result of a filter commands on non-zero exit code in neovim

In neovim, I created this very simple command to run my javascript code through prettierd on save. :command! Prettier normal mz:%!prettierd %<CR>'zzz au BufWritePre *.js :Prettier This works ...
user avatar
  • 113
1 vote
1 answer
50 views

How can I execute a non named file on terminal with NeoVIm?

Some time ago, I've made this question where I asked how to execute a file on the terminal with NeoVim... The solution I found was the following :terminal bash % . Knowing that, I made the following ...
user avatar
  • 385
0 votes
0 answers
21 views

Error on Compiling Command-T Plugin (clang)

While running the make command following this documentation I got this error message: ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX....
user avatar
  • 11
0 votes
1 answer
70 views

How to use Git submodules to install a plugin?

I just switched to Nvim from Vim, and came to this community. So, hello all! I'm doing very primitive config for Nvim and I'm trying to manage my plug-ins using git submodules. First of all, I'm ...
user avatar
  • 11
0 votes
2 answers
33 views

Keybinding for EasyAlign interactive prompt is not working

I'm trying to use junegunn/vim-easy-align to vertically align some text. EasyAlign has an interactive-mode which means you can invoke EasyAlign, it prompts for a key, and then aligns around whatever ...
user avatar
1 vote
0 answers
46 views

Wrong column highlight on lines containing references or links

I've recently taken up nvim and came accross a weird issue. I've turned on cursor position highlighting for both lines and columns (set cursorline and set cursorcolumn), and usually it works as ...
user avatar
  • 111
0 votes
1 answer
541 views

keymap for LSP code formatting in visual mode

In neovim I would like to set a keybinding -- via lua config -- to use LSP to format the visual selection when I type \qf. Using this setting, I can format the whole buffer from normal mode: vim.api....
user avatar
  • 101
0 votes
0 answers
357 views

Getting Server languageserver.ccls failed to start: error, when ever I open cpp file inside neovim

I get the following error: Server languageserver.ccls failed to start: Launching server "languageserver.ccls" using command ccls failed. I have installed coc-ccls, and I have pasted this ...
user avatar
1 vote
2 answers
203 views

Delete all marks except bookmarks in nvim

I use dashboard so I like my marks clean. So I generally make many marks while working on something and then delete them all except the file bookmark in the end. Is there any way to delete all marks ...
user avatar
1 vote
1 answer
36 views

Vim hides files inside directories with brackets in the name

I've been dealing with a huge problem of NeoVim for weeks (also applies to Vim a GVim) and I failed to find the solution on my own. What's happening is that NERDTree is hiding the content of any ...
user avatar
1 vote
1 answer
347 views

How to set keywordprg to call a lua function in neovim?

A plugin unidentified is setting the keywordprg option to :Man but I want it to be LSP based. So I attempted set keywordprg=:lua\ vim.lsp.buf.signature_help() but it gives me the following error and ...
user avatar
0 votes
1 answer
293 views

See live word count in Lualine

I am currently using lualine as my statusline. I would like to see the live world count of the file similar to the feature in airline preferable I would like to get this working natively or else any ...
user avatar
0 votes
2 answers
88 views

Write to current cursor cursor position using a neovim Python plugin

I'd like to insert uuids into my tests when I need them without having to leave vim. I've tried to create a python3 plugin to do this: import neovim import uuid @neovim.plugin class GenerateUuid(...
user avatar
1 vote
1 answer
375 views

Gitsigns color customization

I am customizing the color scheme of the gitsigns column on the left. I managed to change all different symbols using the following: hi DiffAdd hi DiffChange hi DiffDelete hi DiffText I cannot figure ...
user avatar
0 votes
2 answers
269 views

How do I link CoC to the correct Python interpreter

I just installed ubuntu linux on my laptop and made sure to install python. After installing Python, I type the command python3 --version and found that I got version 3.9.7, which is stored in the /...
user avatar
  • 109
0 votes
0 answers
38 views

`langmap` doesn't appear to effect Ctrl characters

(Using Neovim. I tried this same mapping on plain Vim with +langmap and it just doesn't work at all) So I have a keyboard with a non-QWERTY layout, but I learned vim ever so long ago with the standard ...
user avatar
  • 101
1 vote
2 answers
41 views

Disabling automatic imap of "< |" to "\bra{" (using neovim + vimtex)

In LaTeX, I'm trying to write if \(|x - a| < \delta\) then ... but in math mode, the combination < | is automatically replaced by x \bra{. I've been editing tex files with neovim for years, and ...
user avatar
  • 121
0 votes
0 answers
29 views

How to set background(label) of tabs

I tried the following out of this post. But somehow it does not work. Even if I enter it into my .vimrc and source it. Even if I enter something like: :hi TabLineFill ctermfg=Yellow ctermbg=Red ...
user avatar
0 votes
0 answers
29 views

Neovim diffrent behaviour than vim on spelling sugestion

First thing first I am writing a foreign language with a different keyboard(greek-english). I was trying some spell checking features of vim and neovim and I noticed that neovim might have a bug. At ...
user avatar
0 votes
0 answers
59 views

Neovim Vcruntime 140.dll error

Recently I can't open Neovim GUI due to the Vcruntime 140.dll error. should i install 32 bit or 64 bit Vcruntime.dll to solve this problem? I would be grateful if anyone kindly helps me
user avatar
0 votes
0 answers
60 views

How I can refresh a lua script?

How to reproduce, in ~/.config/nvim/init.vim: command! Scratch lua require'tools'.hello() In ~/.config/nvim/lua/tools.lua: local M = {} function M.hello() print('hello') end return M nvim :Scratch ...
user avatar
3 votes
2 answers
337 views

Highlight Markdown indented code

When writing Markdown, fenced code written between triple backticks is highlighted, but not code in indented blocks (I don't care about language specific highlighting). How can I get vim to recognize ...
user avatar
  • 161
0 votes
0 answers
24 views

Avoid insert mode jumping to end of line in terminal pane

I would like my terminal panes to behave more like a normal text buffer. When I've got a modifiable terminal pane, and I want to modify a long command from normal mode, hitting i or cl doesn't work ...
user avatar
  • 103
0 votes
0 answers
38 views

How to jump to previous file (buffer) ignoring terminal buffers?

I am look for a way to jump to a previous file (but not a terminal window) in NeoVim. Lets say I have this flow: open a code.py file open test_code.py file execute tests using :term pytest commmand ...
user avatar
  • 1,173
0 votes
0 answers
20 views

How to map a kebind to a operator

I am using nerd-commenter which uses the operator series gcc to toggle comment. I would like to map Ctrl / to gcc because I prefer the vscode mapping. So is there any way to map to gcc
user avatar

1 2
3
4 5
21