nvim:基于 Neovim 生态的自定义配置项目

Minimal, blazingly fast, and pure Lua based Neovim configuration for my work as DevOps/Cloud Engineer with batteries included for Python, Golang, Terraform, and, of course, YAML

Branch4Tags0
FilesLast commitLast update
1 month ago
1 month ago
1 year ago
3 years ago
9 months ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
4 years ago
9 months ago
5 months ago
3 years ago
1 year ago
1 year ago

我的 Nvim 配置

Sewjp.png

Sewj4.png

README 编写中

终端ghostty

字体Comic Code Ligatures

Neovim 主题tokyonight.nvim

自定义

⚠️ 这主要是我的个人配置

如果你想使用我的配置,有一个 ./lua/vnext/extra/ 文件夹会被 lazy.nvim 加载。此文件夹中的 LazySpecs 会与 ./lua/vnext/plugins/ 文件夹中“默认”的 LazySpecs 合并。你可以参考以下示例:

禁用某个插件:

return {
  {
    "Bekaboo/dropbar.nvim",
    enabled = false,
  },
}

为插件添加新选项:

return {
  {
    "nvim-mini/mini.surround",
    opts = {
      search_method = 'nearest',
    },
  }
}

覆盖插件的选项:

return {
  {
    "L3MON4D3/LuaSnip",
    opts = {
      -- define your own snippets folder
      snippets_path = { vim.fn.expand("~/mySnips") },
    },
  },
}

修改插件的按键:

return {
  {
    "MagicDuck/grug-far.nvim",
    keys = {
      -- stylua: ignore start
      { "<leader>R", hidden = true },
      { "<leader>RG", "<cmd>GrugFar<cr>", desc = "Open" },
      { "<leader>Rg", "<cmd>lua require('grug-far').open({ prefills = { paths = vim.fn.expand('%') } })<cr>", desc = "Open (Limit to current file)"},
      { "<leader>Rw", "<cmd>lua require('grug-far').open({ prefills = { search = vim.fn.expand('<cword>') } })<cr>", desc = "Search word under cursor", },
      { "<leader>Rs", mode = "v", "<cmd>lua require('grug-far').with_visual_selection({ prefills = { paths = vim.fn.expand('%') } })<cr>", desc = "Search selection", },
      { "<leader>X", "", desc = "Search & Replace" },
      { "<leader>XG", "<cmd>GrugFar<cr>", desc = "Open" },
      { "<leader>Xg", "<cmd>lua require('grug-far').open({ prefills = { paths = vim.fn.expand('%') } })<cr>", desc = "Open (Limit to current file)"},
      { "<leader>Xw", "<cmd>lua require('grug-far').open({ prefills = { search = vim.fn.expand('<cword>') } })<cr>", desc = "Search word under cursor", },
      { "<leader>Xs", mode = "v", "<cmd>lua require('grug-far').with_visual_selection({ prefills = { paths = vim.fn.expand('%') } })<cr>", desc = "Search selection", },
      -- stylua: ignore end
    },
  },
}

查看我的博客文章,了解这一重大变更背后的更多原因。你可以在v1分支中找到之前的版本。

Introduction

Minimal, blazingly fast, and pure Lua based Neovim configuration for my work as DevOps/Cloud Engineer with batteries included for Python, Golang, Terraform, and, of course, YAML

Customize your domain