笔者使用的是Lazyvim ,其使用Mason来管理Formatter。笔者遇到的问题主要是在Python文件中,不希望对代码宽度小于125的代码进行分行的格式化(也就是一行代码拆成多行,避免过长)。 如果在每个项目里都新建一个pyproject.toml又有点太蠢了,想要弄一个全局配置。 全局配置Ruff Formatter 在~/.config/文件夹下
使用 mason.nvim 来安装与管理 lsp,dap 和 null-ls 的第三方包。 格代化码式 本项目基于 LSP 来格式化代码。 使用 lsp-format 代替nvim 内置的 vim.lsp.buf.format,提供更灵活的自定义配置。详见 lsp-format 选项。 Telescope 插件 本项目实现了很多有用的 Telescope 插件,详见 ad-telescope-extensions.n...
1、brew install neovim git python3 fd ripgrep xmake (可能还需要安装很多其他东西,待补充) 2、安装lazy管理包,参考https://www.lazyvim.org/installation。安装完成后运行一下nvim,此时会启动lazy,下载很多插件 3、在2的基础上进行简单的个人化定制。例如我的定制有 a、修改配色。在nvim配置的plugins目录下增...
mason-org / mason.nvim Star 9k Code Issues Pull requests Discussions Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters. package-manager package lua packages neovim manager nvim hacktoberfest mason ...
-- - { exclude: string[] }: All adapters set up via mason-nvim-dap, except the ones provided in the list, are automatically installed. -- Example: automatic_installation = { exclude = { "python", "delve" } } automatic_installation = false, -- See below on usage handlers = nil, ...
我个人常用的就 python/go/rust 这三个编程语言,而因为我们都用 Lua 语言来配置 Nvim,所以也加上了 lua_ls 重启Nvim 之后你应该可以在下面的状态栏看到 Mason 正在下载安装上面我们指定的 LSP(注意此时不能关闭 Nvim),可以输入 :Mason 查看安装进度。在你等待安装的过程中,可以输入 g? 查看更多帮助信息了解...
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...
translate betweendapadapter names andmason.nvimpackage names (e.g.python<->debugpy) It is recommended to use this extension if you usemason.nvimandnvim-dap. (This plugin won't really work without them) **Note: this plugin uses thedapadapter names in the APIs it exposes - notmason.nvi...
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, "mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" }, "minuet-ai.nvim": { "branch": "main", "commit": "a647a85a7a1ad6bb2624de9ebe25cba...
语言特定扩展的示例包括nvim-jdtls和nvim-dap-python 扩展 所有已知的扩展都列在Wiki中。wiki 由社区维护。如果您构建了一个或发现了一个未列出的扩展,请添加新的扩展。 非目标 调试适配器安装超出范围。重新发明包管理器不是编辑器插件的业务。使用您的系统包管理器。使用mason即可。