Comments (3)
I came up with this. I am currently wondering how to integrate it with native snippets support of neovim>=0.10
. Please reply if someone figures it out.
return {
"danymat/neogen",
dependencies = "nvim-treesitter/nvim-treesitter",
cmd = "Neogen",
keys = {
{
"<leader>ga",
function()
require("neogen").generate({})
end,
desc = "Generate Annotations",
},
},
---@param _ LazyPlugin
---@param opts table
opts = function(_, opts)
local util = require("lazyvim.util")
if util.has("luasnip") then
opts.snippet_engine = "luasnip"
elseif util.has("snippy") then
opts.snippet_engine = "snippy"
end
end,
}
from neogen.
@rabinadk1 native snippet support has been added according to this issue. Just set snippet_engine
to nvim
.
from neogen.
@rabinadk1 native snippet support has been added according to this issue. Just set
snippet_engine
tonvim
.
Thank you very much. I have updated my config to the following.
return {
"danymat/neogen",
dependencies = "nvim-treesitter/nvim-treesitter",
cmd = "Neogen",
keys = {
{
"<leader>ga",
function()
require("neogen").generate({})
end,
desc = "Generate Annotations",
},
},
---@param _ LazyPlugin
---@param opts table
opts = function(_, opts)
local snippet_engine = nil
if vim.snippet ~= nil then
snippet_engine = "nvim"
else
local util = require("lazyvim.util")
if util.has("luasnip") then
snippet_engine = "luasnip"
elseif util.has("snippy") then
snippet_engine = "snippy"
elseif vim.g.loaded_vsnip then
snippet_engine = "vsnip"
end
end
opts.snippet_engine = snippet_engine
end,
}
from neogen.
Related Issues (20)
- Incorrect parameter list in Python HOT 2
- Have you ever thought about introducing ChatGPT as a document generation engine, just like Mintify Writer? HOT 1
- Python bug - nested functions should not have their first parameter removed
- Empty types in jsdoc HOT 3
- Highlight groups of block after docstring changes after completion of final choice node HOT 1
- This structure cannot generate annotations through neogen
- Module 'neogen.types.template' not found
- Feature Request - Support NeoVim native snippet engine HOT 2
- `Invalid 'end_col': out of range` error whenever running `Neogen file` HOT 2
- Bug: handling of arbitrary args and kwargs with type hints HOT 1
- Allow generating explicit sections HOT 3
- Update / Correction command HOT 2
- Python - raise module_name.Error() is not detected
- Bug: Neogen not functioning in vue files.
- Need unittests HOT 1
- Missing blank line in numpydoc
- Option to always disable writing argument types in Python
- FR: support creating annotations in Markdown code blocks
- Sometimes native snippets do not expand on tab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neogen.