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" "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": { "nvimTelescope": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -812,7 +796,6 @@
"nvimLspconfig": "nvimLspconfig", "nvimLspconfig": "nvimLspconfig",
"nvimOllama": "nvimOllama", "nvimOllama": "nvimOllama",
"nvimPlenary": "nvimPlenary", "nvimPlenary": "nvimPlenary",
"nvimSingleComment": "nvimSingleComment",
"nvimTelescope": "nvimTelescope", "nvimTelescope": "nvimTelescope",
"nvimTodo": "nvimTodo", "nvimTodo": "nvimTodo",
"nvimTokyonight": "nvimTokyonight", "nvimTokyonight": "nvimTokyonight",

View file

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

View file

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

View file

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