-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add option to skip indent nodes #1072
Conversation
Interesting! |
Some LSP servers already take indens into consideration. In such cases, LuaSnip will add additional indents. Before the option: CleanShot.2023-12-02.at.21.38.15.mp4After the option: CleanShot.2023-12-02.at.21.39.15.mp4Config in snippet = {
expand = function(args)
local skip_indent_nodes = false
if vim.api.nvim_get_option_value("filetype", { buf = 0 }) == "dart" then
skip_indent_nodes = true
end
require("luasnip").lsp_expand(args.body, {
skip_indent_nodes = skip_indent_nodes,
})
end,
}, |
Ahh okay, pretty cool 👍 |
Could you also add this to the other documented options in |
All fixed! |
Beautiful, could you squash the commits? |
Ah wait I can squash :D |
Cool, that seems to have worked. |
No description provided.