config-neovim
Use this skill when working with neovim configurations, Lua scripting for Neovim, plugin management, LSP setup, or any Neovim-related development tasks.
When & Why to Use This Skill
This Claude skill provides a comprehensive framework for managing Neovim configurations, leveraging Lua scripting to automate plugin management, LSP (Language Server Protocol) setups, and custom keymap definitions. It is designed to help developers build a highly customized, efficient, and IDE-like coding environment within Neovim, significantly reducing the complexity of manual configuration.
Use Cases
- Automated Plugin Management: Streamline the process of adding and configuring new Neovim plugins using structured Lua specifications and lazy-loading techniques to optimize editor performance.
- LSP and Language Server Setup: Efficiently configure and extend Language Server Protocol settings for various programming languages to enable advanced features like autocompletion, diagnostics, and code navigation.
- Custom Workflow Optimization: Define global or plugin-specific keybindings and integrate them with UI helpers like which-key to create a more intuitive and discoverable development workflow.
- Environment Standardization: Maintain a consistent and modular Neovim setup across different machines by utilizing a structured directory pattern for Lua-based configurations.
| name | config-neovim |
|---|---|
| description | Use this skill when working with neovim configurations, Lua scripting for Neovim, plugin management, LSP setup, or any Neovim-related development tasks. |
config-neovim
When To Use
Use this skill when working with neovim configurations, Lua scripting for Neovim, plugin management, LSP setup, or any Neovim-related development tasks.
What Can Do
- Manage plugins
- Manage keymaps
- Manage LSP setup
Quick Reference
Add a new plugin
Create file in appropriate caregory under lua/dotvim/plugins.
return {
"author/plugin-name",
event = "VeryLazy",
opts = {
-- options
},
}
Extending LSP Server Config
Create or update file under lsp/.
---@type vim.lsp.Config
return {
cmd = { ... },
init_options = { ... }
capabilities = { ... },
}
Adding a Keymap
If the keymap is highly plugin-related, config the keymap in that plugin's spec.
return {
"author/plugin-name",
keys = { ... } -- config keymaps here
}
Others, config the keymap in lua/dotvim/configs/keymaps.lua.
vim.keymap.set("n", "<M-n>", "<cmd>nohl<CR>", { desc = "nohl" })
If the new keymap also creates a new which-key group, add the group in lua/dotvim/plugins/base/which-key.lua.