Neovim : Replace singlecomment with built-in commenting.

This commit is contained in:
Dmitry Voronin 2024-10-03 23:13:19 +03:00
parent e87a319bc5
commit cfb9ae2779
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
4 changed files with 3 additions and 28 deletions

View file

@ -641,22 +641,6 @@
"type": "github"
}
},
"nvimSingleComment": {
"flake": false,
"locked": {
"lastModified": 1717376019,
"narHash": "sha256-9DOW9EiezrahDyipb4UnZ5ET3DhXhdzCT7XmFrsJ/gg=",
"owner": "LucasTavaresA",
"repo": "singlecomment.nvim",
"rev": "cf1ae4c179e5c36a27b41662f418b28b38c1d4ee",
"type": "github"
},
"original": {
"owner": "LucasTavaresA",
"repo": "singlecomment.nvim",
"type": "github"
}
},
"nvimTelescope": {
"flake": false,
"locked": {
@ -812,7 +796,6 @@
"nvimLspconfig": "nvimLspconfig",
"nvimOllama": "nvimOllama",
"nvimPlenary": "nvimPlenary",
"nvimSingleComment": "nvimSingleComment",
"nvimTelescope": "nvimTelescope",
"nvimTodo": "nvimTodo",
"nvimTokyonight": "nvimTokyonight",

View file

@ -90,10 +90,6 @@
url = "github:nvim-lua/plenary.nvim";
flake = false;
};
nvimSingleComment = {
url = "github:LucasTavaresA/singlecomment.nvim";
flake = false;
};
nvimTelescope = {
url = "github:nvim-telescope/telescope.nvim";
flake = false;

View file

@ -29,7 +29,6 @@ in {
"${inputs.nvimLspconfig}"
"${inputs.nvimOllama}"
"${inputs.nvimPlenary}"
"${inputs.nvimSingleComment}"
"${inputs.nvimTelescope}"
"${inputs.nvimTodo}"
"${inputs.nvimTokyonight}"

View file

@ -1,9 +1,6 @@
{ ... }: {
text = ''
-- Toggle comment for the selected line.
vim.keymap.set("n", "<Leader>/", require("SingleComment").SingleComment, { expr = true })
-- Toggle comments for multiple lines.
vim.keymap.set("v", "<Leader>/", require("SingleComment").Comment, {})
remap_normal("<Leader>/", "gcc<cr>")
remap_visual("<Leader>/", "gc")
'';
}