Replies: 2 comments
|
In my case, the following setup works for commenting out.
require('ts_context_commentstring').setup {
enable_autocmd = false,
}
require("Comment").setup {
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
}
require("nvim-treesitter.configs").setup {
textobjects = {
select = {
enable = true,
keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
},
},
},
}Commenting out works, but not uncommenting. |
0 replies
|
Thanks |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a function where my cursor is right in the middle of it.
I press
gbafsequence and my function doesn't get commented out. It is go + gopls language server and I have nvim-treesitter installed with the go module.Anyone know why?
These are my settings (defaults):
All reactions