marksman icon indicating copy to clipboard operation
marksman copied to clipboard

nvim: omni-completion with C-x C-o results in extra braces '[['

Open khauchy opened this issue 1 year ago • 3 comments

I installed the latest Marksman (1.0.0-7f3b471) using snap and use it with nvim.

When I try to insert a wiki-style link, the completion inserts an extraneous [[. For instance:

  • when I input [[<C-x><C-o>, the resulting link is [[[[file
  • when I input [](/<C-x><C-o>, the result is [](/[](/path/to/file).

Have I made a misconfiguration in my configuration, or maybe I am using marksman wrongly?

My nvim version is as follows, and I've also included the minimalist init.vim I use below.

$ nvim --version
NVIM v0.9.2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=auto -fstack-protector-strong -DUNIT_TESTING -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/usr/include/luajit-2.1 -I/usr/include -I/usr/include/luv -I/builddir/build/BUILD/neovim-0.9.2/redhat-linux-build/src/nvim/auto -I/builddir/build/BUILD/neovim-0.9.2/redhat-linux-build/include -I/builddir/build/BUILD/neovim-0.9.2/redhat-linux-build/cmake.config -I/builddir/build/BUILD/neovim-0.9.2/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include

         fichier vimrc système : "$VIM/sysinit.vim"
               $VIM par défaut : "/usr/share/nvim"

Run :checkhealth for more info
call plug#begin()

Plug 'williamboman/mason.nvim'
Plug 'williamboman/mason-lspconfig.nvim'
Plug 'neovim/nvim-lspconfig'

call plug#end()

" Lua plugins
lua << EOF
require("mason").setup()
require("mason-lspconfig").setup{
  ensure_installed = {"marksman"},
}

require("lspconfig").marksman.setup{}

EOF

khauchy avatar Nov 13 '23 21:11 khauchy