A possible workaround is to clear the ext mark before commenting (https://github.com/numToStr/Comment.nvim#pre-hook) pre_hook = function(ctx) local line_start = (ctx.srow or ctx.range.srow) - 1 local line_end = ctx.erow or ctx.range.erow require("lsp-inlayhints.core").clear(0...
Note: Doing this isoptional. Using just the standard nvim-lspconfigrequire'lspconfig'.volar.setup{}instead of the code below is completely fine. What "multiple language servers" does in the context of Volar is explained here:#393 (reply in thread) Anyways, this evening I had some time to...
nvim ~/.config/nvim/after/plugin/kommentary.lua treesitter.setup { context_commentstring = { enable = true, enable_autocmd = false, context_commentstring = { enable = true, config = { javascript = { __default = "// %s", jsx_element = "{/* %s */}", jsx_fragment = "{/* %s...
ls.config.set_config({ history = true, -- Update more often, :h events for more info. updateevents = "TextChanged,TextChangedI", ext_opts = { [types.choiceNode] = { active = { virt_text = { { "choiceNode", "Comment" } }, }, }, }, -- treesitter-hl has 100, use somethi...
-- 1. `gcc` to comment a line -- 2. select lines in visual mode and run `gc` to comment/uncomment lines use'tpope/vim-commentary' -- Treesitter-integration --use { -- 'nvim-treesitter/nvim-treesitter', -- run = function() ...
Vim offers several ways to delete lines in documents. You can delete a single line, delete multiple lines, or a range of lines in the Vim editor. In this section, we will learn the easy way to delete lines in theVim editor. 1. Deleting the Current Line with dd ...
require'nvim-treesitter.configs'.setup { -- A list of parser names, or "all" (the five listed parsers should always be installed) ensure_installed = { "c", "lua", "vim", "vimdoc", "query" }, -- Install parsers synchronously (only applied to `ensure_installed`) sync_install = ...
Break change: snippet completion disabled in string and comment. Add support for register local extension. Add title for commands in Denite coc-command Fix prompt hidden by echo message. Fix contribute commands not shown in denite interface. Fix parse of iskeyword, support character range. Fix tri...
首先定义一个局部变量lazypath,它是Lazy.nvim插件的存放路径,通常位于~\.local\share\nvim\lazy\目录下。 然后检测Lazy.nvim是否被安装,如果在lazypath中没有找到它,就通过Git克隆这个插件到lazypath。 最后将lazypath加入runtimepath,这样Neovim就能找到插件。 配置Lazy.nvim 在Lazy.nvim中,使用.setup方法配置laz...
mini.ai Introduction of new module. mini.comment FEATURE: Now hooks can be used to terminate further actions by returningfalse(#108). mini.indentscope BREAKING: Soft deprecatevim.b.miniindentscope_optionsin favor of usingoptionsfield ofminiindentscope_config. ...