Neovim : Replace singlecomment with built-in commenting.
This commit is contained in:
parent
e87a319bc5
commit
cfb9ae2779
17
flake.lock
17
flake.lock
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -29,7 +29,6 @@ in {
|
|||
"${inputs.nvimLspconfig}"
|
||||
"${inputs.nvimOllama}"
|
||||
"${inputs.nvimPlenary}"
|
||||
"${inputs.nvimSingleComment}"
|
||||
"${inputs.nvimTelescope}"
|
||||
"${inputs.nvimTodo}"
|
||||
"${inputs.nvimTokyonight}"
|
||||
|
|
|
@ -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, {})
|
||||
text = ''
|
||||
remap_normal("<Leader>/", "gcc<cr>")
|
||||
remap_visual("<Leader>/", "gc")
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue