csharp-namespace.nvim
is a Neovim plugin designed to enhance C# development by providing namespace completions. It integrates seamlessly with nvim-cmp
to offer a better coding experience for C# developers.
- Neovim 0.5 or later
- nvim-cmp
Using lazy.nvim
as the plugin manager, add the following configuration to your Neovim setup:
return {
{
"markchristianlacap/csharp-namespace.nvim",
ft = "cs",
dependencies = {
"hrsh7th/nvim-cmp",
},
config = function()
require("csharp-namespace").setup {}
local cmp = require "cmp"
local config = cmp.get_config()
table.insert(config.sources, {
name = "csharp-namespace",
group_index = 1,
priority = 10000,
})
cmp.setup(config)
end,
},
}
Once installed, the plugin automatically provides namespace completions for C# files. No additional configuration is necessary beyond the initial setup.
You can customize the behavior of csharp-namespace.nvim
by passing options to the setup
function. Here is an example of the available configuration options and their defaults:
require("csharp-namespace").setup {}
cmp.setup({
sources = cmp.config.sources({
{ name = 'csharp-namespace' }
})
})
This plugin only currently works on Linux and UNIX-based systems where the find
command is available.
Contributions are welcome! Please feel free to submit a Pull Request or open an Issue on GitHub.
This project is licensed under the MIT License.
Special thanks to the contributors of nvim-cmp for their amazing work in providing a powerful completion engine for Neovim.
For any questions or feedback, you can reach out via GitHub Issues.