Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/stephansama/nvim. neovim configuration for @stephansama
dotfiles lua neovim neovim-configuration nvim nvim-config typescript typescript-to-lua
Something went wrong. Try again.
Lua
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647local ft = require("config.constants").COMMENT_FILETYPESlocal keys = require("keys.plugin")
local opts = function() return { --- LHS of operator-pending mappings in NORMAL and VISUAL mode opleader = { line = "gc", block = "gC", }, toggler = { line = "gcc", block = "gCc", }, extra = { above = "gcO", below = "gco", }, pre_hook = require( "ts_context_commentstring.integrations.comment_nvim" ).create_pre_hook(), }end
return { { "folke/todo-comments.nvim", keys = keys.todo_comments, event = "VeryLazy", config = true, dependencies = { "nvim-lua/plenary.nvim" },}, { "numToStr/Comment.nvim", ft = ft, opts = opts, config = true, dependencies = { "JoosepAlviste/nvim-ts-context-commentstring" },}, { "danymat/neogen", ft = ft, config = true, keys = keys.neogen, opts = { enabled = true, snippet_engine = "luasnip", },} }