60年代蒋介石为何拒绝苏联帮他反攻:不想当吴三桂
百度 我这个儿媳妇好,给我洗脸洗脚,煮饭剃头。
Questions regarding Neovim, a refactored fork of Vim. Should be used with other tags to narrow down the question.
1,974 questions
1
vote
1
answer
16
views
synID() on treesitter highlighting
My script includes synID() but does not work on a help file after nvim 0.10.0. It is because nvim starts to use treesitter highlighting and does not set the syntax option. Is there any alternative ...
1
vote
1
answer
29
views
Why are TypeScript files with shebang in nvim rendered in gray?
I have installed the up-to-date tree-sitter-typescript, and it works well in typescript files without shebang.
I searched online but couldn't find any particularly similar questions. Some people ...
1
vote
1
answer
26
views
Map equal to gq in Neovim
The title says it all. I'm trying to map <Equal> to gq behavior in Neovim both when in Normal mode (in that case do gqq) and in Visual mode (in that case do gq) but somehow this is not working.
...
1
vote
1
answer
88
views
Line numbers in terminal mode
I want to enable line numbers in terminal mode in Neovim.
I used the following snippet:
vim.api.nvim_create_autocmd("TermOpen", {
callback = function()
vim.opt_local.number = ...
0
votes
0
answers
69
views
VTSLS language server looks attached at output of :LspInfo, but it does not function except basic diagnostics
Here is :LspInfo output:
- vtsls (id: 5)
- Version: 0.2.9
- Root directory: ~
- Command: { "vtsls", "--stdio" }
- Settings: {
vtsls = {
tsserver = {
...
1
vote
0
answers
56
views
How to adapt a vim-plug example to lazy.vim?
I use Neovim with lazy.nvim plugin manager on macOS. I am trying to get cmp-zotcite (autocomplete zotero citationkeys) to work, which requires jalvesaq/zotcite (talks to zotero SQL database) plugin ...
0
votes
1
answer
15
views
nvim terminal nested nvim how to return focus to inner nvim
I use nvim and lazygit in the terminal, with the lazygit configuration file located at ~/.config/lazygit/config.yml.
The configuration is set as follows:
os:
edit: 'nvim {{filename}}'
editAtLine: '...
0
votes
1
answer
111
views
Double load of lua_ls when using nvim-lspconfig
I am trying to debug a problem I have with the lsp configuration of nvim.
When I open a file in nvim, the lsp lua_ls loads fine and works correctly. If I open a new file, or move to the next file, ...
1
vote
1
answer
67
views
How to automatically close all Neovim terminal buffers, if any exists, before saving persistence.nvim sessions?
I use the plugin persistence.nvim to manage my Neovim sessions, which on exit are automatically saved in ~/.local/state/nvim/sessions. These sessions can be loaded with several commands, including :...
0
votes
1
answer
37
views
Undesired underscore when using icon with group in which-key.nvim
I'm using which-key.nvim in Neovim to organize my keybindings, and I've run into a small formatting issue.
When I define a group with an icon like this:
spec = {
{ "<leader>c", ...
0
votes
2
answers
736
views
Neovim: Duplicate LSP clients attached to the buffer
I suddenly started to see pylint warn me about line length though I was within the threshold configured. I checked :LspInfo and found duplicate instances of pylsp attached. One with default/no ...
0
votes
1
answer
135
views
LSP ltex_plus custom config never loaded using Mason + LSP Config
I'm trying to configure ltex-ls-plus + ltex-extra, but the ltext config is never parsed and it keeps using the default.
['ltex_plus'] = function(server_name)
config_server(...
0
votes
0
answers
18
views
Breakpoint Not Being Hit (trying to use neotest plugin with neotest-jest)
I'm having trouble configuring neotest-jest to work with Typescript. I've created a minimal Typescript application with a single file and an accompanying unit test in jest, but when I attempt to ...
1
vote
0
answers
33
views
Neovim's notifications position
I'm using lazyvim with nvim-jdtls plugin.
Any idea what plugin is controlling display settings of the notifications from the screenshot and how to change their position to for example top right?
1
vote
1
answer
123
views
Smart indentation for html tags in tsx/jsx/html files does not work in Neovim v0.11+
For some reason, smartindent doesn’t seem to work properly for HTML tags inside .tsx, .jsx, or .html files. I've searched for solutions, but most of what I found are outdated answers from the Vim ...