Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 47928

Use this tag for questions specifically regarding Neovim-only features (i.e. features not found in Vim and other Vi-like editors). It should only be used if the problem does NOT occur in Vim or other Vi-like editors.

0 votes
0 answers
71 views

(neovim) nvim_win_get_cursor() gets same value after nvim_input("<CR><Esc>")?

I'm trying to set a key map like local key_map = vim.keymap.set local input = vim.api.nvim_input local opts = { noremap = true, silent = true } key_map('n', '<C-j>', function() …
HRC's user avatar
  • 61
0 votes
0 answers
2k views

Spawning language server with cmd: `clangd` failed

I have a c project and I would like to use the feature of LSP in Neovim such as gd (go to definition). …
HRC's user avatar
  • 61
1 vote
1 answer
928 views

ccls configuration in nvim-lspconfig

I've been struggling for setting ccls in Neovim. I've ever used clangd for a long time; after following TJ's video and instructions on nvim-lspconfig, it works well. … Neovim is aware of ccls while it is running .c files. Note: The operating system is Windows 10 rather than Ubuntu. …
HRC's user avatar
  • 61
0 votes
0 answers
77 views

In Neovim where is {lhs} of triggering a keymap stored? Can we access it?

If we set a keymap that {lhs} is abc in normal mode. For example, local opts = { noremap = true, silent = true } vim.keymap.set('n', 'abc', function() print("Keymap abc!"), opts) If we type abc in no …
HRC's user avatar
  • 61
0 votes
1 answer
66 views

How to get the value of visual-mode wordcount() in lua script

Objective I am working on writing a keymap through lua script in Neovim: First, selecting some words in visual mode and, in the corresponding lua script, trying to get the value of vim.fn.wordcount(). …
HRC's user avatar
  • 61
2 votes
1 answer
646 views

vim.keymap.set issue

I've tried to make a key map as follows: vim.keymap.set('x', '<leader>n', function() -- Here <leader> is <Space> line1r, line1c = unpack(vim.api.nvim_buf_get_mark(0, "<")) line2r, line2c = un …
HRC's user avatar
  • 61
1 vote
2 answers
50 views

ctags works but not for tagbar (C language)

I have a similar situation like this post but I'm working on C. I have installed ctags on my machine via ctags-nightly-build. $ which ctags /usr/local/bin/ctags $ ctags --version Universal Ctags 6.1. …
HRC's user avatar
  • 61
1 vote
Accepted

ctags works but not for tagbar (C language)

. '/.tmp' in my Neovim config before loading plugins. Then tagbar works. It seems to be an permission issue with the variable TMPDIR that Vim uses. …
HRC's user avatar
  • 61