local my = {} my.highlights = function(config) local c = config.colors return { CmpGhostText = { fg = c.grey4, bg = c.darkBlue } } end my.commands = { Hello = ':echo world' } require('one').setup { plugins = { m
nvim_lsp = "[LSP]", ultisnips = "[UltiSnips]", nvim_lua = "[Lua]", cmp_tabnine = "[TabNine]", look = "[Look]", path = "[Path]", spell = "[Spell]", calc = "[Calc]", emoji = "[Emoji]" })[entry.source.name] return vim_item end -- 自动提示2 简洁...
python https://github.com/mfussenegger/nvim-dap-python.git https://github.com/microsoft/debugpy.git js https://github.com/mxsdev/nvim-dap-vscode-js.git https://github.com/microsoft/vscode-js-debug.git haskell https://github.com/phoityne/haskell-debug-adapter.git lua https://github.com...
DAP 即调试适配协议( Debug Adapter Protocol ),顾名思义,它是用来对多种调试器进行抽象统一的适配层,将原有 IDE 和调试工具直接交互的模式更改为和 DAP 进行交互。该模式可以让 IDE 集成多种调试器变得更简单,且灵活性更好。 dap的思路和lsp是一样的,也是将调试这个步骤与编辑器分开,进行解耦操作,这种思想简...
Python: install DebugPy Example for ArchLinux users: sudo pacman -S python-debugpy or pip install --local debugpy # Install to user's home directory Go: install Delve For more information on DAP installation, see Debug Adapter Installation. Formatter Bash: install Shfmt* C/C++: install Cla...
加入浮动终端,实现 CopilotChat.nvim 的浮动窗口功能 (没错,类似 cursor),目标是在浮动窗口输入指令,直接在 cursor 下方补全结果 (怎么看都像是大号版的 nvim-cmp, 区别在于它的阅读范围可以达到整个 buffer,而不是只有当前行); 实现tdf 与 WezTerm 的终端预览联动,现在还需要依赖 kitty 展示 PDF,但 kitty 的...
# 安装 NVIMbrew install nvim brew install ranger# 需要有 python3 支持brew install python3 brew install node# 对 nvim 添加 python 支持pip3 install neovim pynvim# 输入 nvim 检测:checkhealth NVIM 配置 init.vim mkdir -p ~/.config/nvim nvim ~/.config/nvim/init.vim " 配置文件导入 "{...
treesitter'Plug'RRethy/vim-illuminate'" auto compeletionPlug'neovim/nvim-lspconfig'Plug'hrsh7th/cmp-nvim-lsp'Plug'hrsh7th/nvim-cmp'Plug'hrsh7th/cmp-buffer'Plug'hrsh7th/cmp-path'Plug'hrsh7th/cmp-cmdline'Plug'williamboman/mason.nvim'" LSPPlug'neoclide/coc.nvim', {'branch':'release...
首先定义一个局部变量lazypath,它是Lazy.nvim插件的存放路径,通常位于~\.local\share\nvim\lazy\目录下。 然后检测Lazy.nvim是否被安装,如果在lazypath中没有找到它,就通过Git克隆这个插件到lazypath。 最后将lazypath加入runtimepath,这样Neovim就能找到插件。
-- python = { "isort", "black" }, -- -- You can use 'stop_after_first' to run the first available formatter from the list -- javascript = { "prettierd", "prettier", stop_after_first = true }, }, }, }, { -- Autocompletion "hrsh7th/nvim-cmp", event = "InsertEnter", ...