]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/coding.lua
nvim/coding: switch to comments.nvim
[dotfiles.git] / nvim / lua / plugins / coding.lua
index a2e1538516cf10c5a281727e0968ebf5bba9dd56..c1b1c39a8e3b61301105fed7e2d8911e91ce0dd0 100644 (file)
@@ -4,6 +4,14 @@ return {
   {
     "L3MON4D3/LuaSnip",
     -- disable luasnip bindings for <tab> and <s-tab>
+    dependencies = {
+      {
+        "honza/vim-snippets",
+        config = function()
+          require("luasnip.loaders.from_snipmate").lazy_load()
+        end,
+      },
+    },
     keys = function()
       return {}
     end,
@@ -78,4 +86,20 @@ return {
       },
     },
   },
+  -- comments
+  {
+    "numToStr/Comment.nvim",
+    opts = {
+      toggler = {
+        line = "gcc",
+        block = "gbb",
+      },
+      mappings = {
+        basic = true,
+        extra = true,
+      },
+    },
+  },
+  { "JoosepAlviste/nvim-ts-context-commentstring", enabled = false },
+  { "echasnovski/mini.comment", enabled = false },
 }