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
0 votes
0 answers
4 views

MacOS neovim-nightly build error: implicit declaration of function

macos 13.2(apple chip) Build prerequisites already installed. build param: make CMAKE_BUILD_TYPE=Release log: /Users/agou-ops/GitHub_workspace/neovim-nightly/src/nvim/lua/treesitter.c:149:3: error: ...
0 votes
0 answers
8 views

Prevent Neovim LSP from opening a scratch preview buffer

When auto-completing with neovim's LSP, whenever selecting a menu entry from the auto-complete list a scracth/preview buffer is created, even if empty: How can I disable these buffers specifically ...
1 vote
1 answer
9 views

Cannot open terminal ini nvim

I installed Plugin terminal using the vim-terminal plugin and try to execute :TerminalSplit bash but before the terminal open I got a warning message. Python 2 interface is not installed, using Python ...
1 vote
1 answer
13 views

<Tab> out of insert mode - lua keymap

I'm a relatively new neovim user. I use nvim-autopairs to always induce matching (, [, {, ', " character pairs, and automatically placing my cursor inside them. As an example, in insert mode, if ...
0 votes
1 answer
38 views

How to get the total lines of a file before it's loaded into a buffer?

As title. My target is to disable a plugin before it is applied to a buffer that will be loaded with the content of a file. I can get the file name before it is loaded. The file to be opened is ...
  • 1,075
0 votes
0 answers
10 views

Adding dictionary words list to deoplete plugin

Let's say I have list of words in one file in my home directory (each word is in separate line): bar barfoo foo foobar ... How can I add this list of words to vim deoplete auto-completion plugin? I'...
  • 1
1 vote
0 answers
13 views

Is it possible to resize a floating window?

As title. Say I just created a floating window and some lines of it are too long to be displayed properly(to me), then in this case I would prefer to resize that window to make it larger instead of ...
  • 1,075
1 vote
1 answer
28 views

Handle star imports in Python

I'm currently developing a lot with Python. I use projects like pwntools and sometimes I'm contributing to repositories that use star imports in their source code. I know that star imports are not ...
  • 111
0 votes
0 answers
19 views

nvim: `vim.o.cmdheight=0` looses the 'recording @a' macro messages

When I set vim.o.cmdheight=0 in neovim, then use macros. The recording @a messages are lost. Aside for reverting back to vim.o.cmdheight=1, how can I display these messages in lualine? Environment: ...
0 votes
1 answer
40 views

Why can't I jump to the help files I've written?

I am writing neovim help documentation for a plugin I am developing that reads as follows. project.txt *project* description ... ======================================================================...
  • 121
0 votes
0 answers
36 views

How do I properly display emoji in Neovim?

I'm running Ubuntu 22.04 and I have neovim (I think I have the latest version) v0.6.1. When I use an emoji in my code, like this coral: And then I switch buffers. I see an artifact (in this case the ...
0 votes
0 answers
12 views

Conjure client '' doesn't support function: eval-str

I'm using neovim for clojure development. I've Olical/conjure and Olical/aniseed plugins added. The config are use 'Olical/conjure' use 'PaterJason/cmp-conjure' use 'Olical/aniseed' local com =...
0 votes
1 answer
31 views

Statusline vs Rulerformat - What is the Difference?

Question What is the purpose of the ruler? I have recently learned about the statusline and the rulerformat, and was wondering what the difference between them is. Why does the ruler exist? Why can't ...
  • 172
1 vote
1 answer
29 views

How to add <bits/stdc++.h> header file in Clangd installed through Mason (Neovim lua)?

I want to add/expand the Clangd Language server, which I installed through Mason within Neovim, with the standard libraries that come with MinGW (I run windows 11). I'm trying to do CP, and for that I ...
1 vote
1 answer
37 views

How to add action before "gf"?

I'm using NVIM 0.8.2 I'd like to replace the default gf command (goto file under the cursor) to do something before and after the action. For example: echo "do something before" goto file/...
  • 205
1 vote
1 answer
136 views

Always duplicate yanked text to system clipboard

I'm using neovim 0.8.2 Is there a way to automatically mirror last yanked text to system clipboard, regardless of which register I used to yank it to? So if I run something like "ayiw I will have ...
  • 165
0 votes
1 answer
25 views

How to debug this problem with the :map command?

I was trying to view my key mappings because I can't seem to jump through parts of snippets in UltiSnips. So I type :map and hit enter and it comes up with the start of the list, but there I can't ...
0 votes
2 answers
41 views

Is it possible to prevent the buffer of a window from being changed?

As title. In fact, I just encountered a situation where I cannot change the buffer of the current window, which is created by some plugin. So I guess there might be some window/buffer option(s) to ...
  • 1,075
0 votes
1 answer
30 views

"Error detected while processing TextChangedI Autocommands for "<buffer=4>":" ParInfer Neovim

I'm setting up parinfer plugin for lisp development in neovim. I've installed neovim plugin using below code - use 'gpanders/nvim-parinfer' And I've also setup below configuration -- parinfer options ...
0 votes
0 answers
16 views

how to configure conjure aniseed parinfer in lua for neovim clojure development?

I'm using neovim for clojure development. I would like to setup below plugins. Olical/aniseed Olical/conjure gpanders/nvim-parinfer PaterJason/cmp-conjure I don't know how to setup rudimentary ...
0 votes
0 answers
29 views

Create a temporary, readonly buffer for test output in Neovim

I want to create a Neovim plugin that automatically runs a test suite whenever a file is saved. Here's an overview: If I save a Rust file, run cargo test If there's not a buffer opened for the test ...
  • 101
0 votes
1 answer
33 views

Unable to install luasnip

After installing luasnip I encountered this error: Even though cmp is already installed Plugins.lua use({ "onsails/lspkind-nvim", event = "VimEnter" }) use({ "L3MON4D3/...
1 vote
2 answers
35 views

Ignore/map case in command prompt :edit fileName

I would like to use case-ignoring completion in the file arguments I pass to (n)vim in the internal command prompt: For example, :edit case<tab> should suggest caselower.txt and Caseupper.txt. ...
  • 113
0 votes
0 answers
5 views

clojure-lsp in neovim is not navigating to function definitions/namespaces

I'm using neovim with clojure lsp for clojure development. My neovim config are exactly same as this repo. The autosuggesting is working fine with this configuration. But when I like to navigate to ...
0 votes
0 answers
7 views

neovim: pwntools process automatically stops when trying to invoke interactive shell

I'm using python pwntools. I'm using python 3.10.x This line of code should open a shell for me: io.interactive() But while running this file from vim using !./% it doesn't open the shell doesn't ...
0 votes
0 answers
21 views

nvim [syntax highlighting]

I'm using macOS with the kitty terminal emulator. The problem I have is when working with .tex files: The syntax highlighting of nvim is overlapping to colors so I have to mark those spots in order to ...
  • 1
0 votes
1 answer
20 views

Why is nvim myfile.txt.gz not decompressing the file anymore?

I used to open my files.txt.gz files (or txt.xz) files directly with nvim. But it does not work any more for some months. Both compiled from source, or from Debian package. What could be the cause ?
0 votes
0 answers
27 views

Setting path in init.lua

One of my packages needs me to set up the PATH and one variable. In my vimscript code I had: let $PATH.=':/usr/lib64/openjdk-11/bin/' let $MYVIMRC='/home/luis/.config/nvim/init.vim' But I can't ...
  • 113
2 votes
1 answer
17 views

Can you select and execute VimL / VimScript inside another file?

Update: It is possible with '<,'>source. I figured it out right after writing this question, no need for the complicated workaround. I am gonna still let this question here and not delete it, ...
  • 172
0 votes
0 answers
16 views

Number list telescope search result entries

when either greping string or live grep or searching files, is there's a method to number list the search results entries? I tried using TelescopePreviewerLoaded and it only number the preview window. ...
2 votes
1 answer
51 views

Correcting coc.nvim colours

I'm currently customizing my neovim using packer and I ran to a package for code auto completion known as coc.nvim. The current colour scheme that I am using is a custom one with dark grey background ...
0 votes
1 answer
22 views

Jump to file containing mappings

my nmap returns the following two lines among other things: n bh * <Lua 5: vim/_editor.lua:344> n bl * <Lua 4: vim/_editor.lua:344> I dont want those mappings because ...
0 votes
0 answers
35 views

How to not change directory when I use "Go to file"?

I'm using neovim and I have NvimTree installed. When I press gf on a file path, it opens that import file but at same time, my NvimTree go to that file path too, so I have to cd back to the original ...
  • 205
0 votes
0 answers
9 views

Why Neovim has different color than Vim [duplicate]

I just installed Neovim and when I execute for example this command nnoremap <leader>gd :!clear<CR>:!git diff<CR> I'm getting this output for Neovim: and this output for Vim: How ...
0 votes
1 answer
48 views

mapping > (and <) to function for special indent

I would like to map > (and <) in normal mode to a function such that it indents the line and keeps the cursor at the original position after performing the indent Here my code in the file ...
  • 1
-1 votes
1 answer
28 views

How can I hide navigation bar in nvim

I would like to know how I can remove this navigation bar or at least fix that fat red arrow. Here is my nvim config https://github.com/victororlyk/nvim_config
0 votes
1 answer
32 views

expand("%") sometimes gives me a full path

For some reason, some times the command expand("%") gives me a full path of a file rather than the relative path as expected. If I check the pwd it says I'm on the project folder. However, ...
1 vote
1 answer
79 views

How to get the highlight group of the word under the cursor in Neovim with Treesitter installed?

Ok folks, I've tried all these duplicates: How to know which highlighting group is used for the background of a word? How to identify the highlight groups in use on a particular character? How to ...
0 votes
0 answers
21 views

How can I turn off Just One Instance of a warning from bashls, shellcheck, pyright?

I want to turn off a warning from a Language Server (LS), but for just One Line in One File. EG, in:  import readline0 # noqa: ignore=E402 ■ Import "readline0" could not be resolved I ...
1 vote
1 answer
97 views

How to configure pylsp when using mason and mason-lspconfig in Neovim?

I want to configure my Python language server (pylsp) in Neovim in a Lua config (init.lua). I just transitioned from a Vimscript to a Lua config with basically zero Lua knowledge and this is causing ...
0 votes
0 answers
41 views

Mapping to ctrl+m and ctrl+i in neovim

I was trying to bind to <C-m> and <C-i> in nvim to move from window to but these seem to be mapped by zsh to newline and tab respectively. Is there any way to disable these mappings so I ...
1 vote
1 answer
58 views

coc-pairs not working

I've followed the instructions at https://github.com/neoclide/coc-pairs to install the autopair extension for coc: :CocInstall coc-pairs After running this command, I get the following message: ...
  • 93
0 votes
0 answers
16 views

Neovim exiting unexpectedly when closing floating window

When I first open neovim, if I use a plugin that opens a floating window (telescope, floaterm), when I close that floating window it'll exit neovim entirely. If I open a buffer/file first, then I ...
  • 101
0 votes
1 answer
57 views

Is it possible to store the current colorscheme into a session?

As title. I have to use some colorscheme to make my reading experience better on certain filetype. I have made an auto session plugin myself but I don't know how to store the colorscheme info I'm ...
  • 1,075
2 votes
1 answer
42 views

How to select a function in neovim using LSP?

I want to select (e.g. to comment/uncomment) entire functions at a time in neovim using the built-in LSP. I do this now by avoiding empty lines in functions so that I can vap to select the entire ...
  • 141
0 votes
1 answer
30 views

neovim change keybind only for specific buffer type/plugin

In neovim, I have my leader mapped to space. I also use nvim-tree. What I want: when nvim-tree is open and that is the active buffer (cursor is there), map leader to something else so I can use space ...
  • 101
0 votes
1 answer
96 views

How to insert text from lua function at cursor position (insert mode)

I realize there is a similar question here but using vimscript. I have created a function that returns a uuid in lua. But I would like to assign this to a keymap and insert the text at the cursor ...
  • 199
0 votes
1 answer
19 views

Some coloring only visible if I set `hi Normal guibg=NONE`?

I just encountered one more tricky coloring problem. If I set hi Normal guibg=NONE I will get the effect I want: But if I disable the transparent background by setting that guibg to anything else, I ...
  • 1,075
0 votes
0 answers
14 views

Highlight variable imported with a require function in JS

What if I want to create a highlight group for this variable: const example = require (..) I want to highlight the example variable and all occurrences.
0 votes
1 answer
50 views

New neovim user: ...cker/start/lsp-zero.nvim/lua/lsp-zero/nvim-cmp-setup.lua:12: attempt to index field 'SelectBehavior' (a nil value)

I'm getting: Error detected while processing /Users/dstromberg/.vim/init.lua: E5113: Error while calling lua chunk: ...cker/start/lsp-zero.nvim/lua/lsp-zero/nvim-cmp-setup.lua:12: attempt to index ...

1
2 3 4 5
24