From dfac036414fc0314d6532ff124454d7706e81807 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 22 Nov 2024 10:13:34 +0100 Subject: [PATCH] nvim/lua/user/plugins/editor.lua: adding todo-comments plugin --- nvim/lua/user/plugins/editor.lua | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/nvim/lua/user/plugins/editor.lua b/nvim/lua/user/plugins/editor.lua index f0ed255..886b47c 100644 --- a/nvim/lua/user/plugins/editor.lua +++ b/nvim/lua/user/plugins/editor.lua @@ -14,6 +14,19 @@ return { virtual_symbol_suffix = '', } }, + { + "folke/todo-comments.nvim", + dependencies = { "nvim-lua/plenary.nvim" }, + opts = { + signs = false, + keywords = { + TODO = { color = "warning" }, + }, + highlight = { + keyword = 'fg', + } + } + }, { "pnx/mini.bufremove", opts = { @@ -104,7 +117,7 @@ return { }, init = function() vim.o.formatexpr = "v:lua.require'conform'.formatexpr()" - user.formatter = function (args) + user.formatter = function(args) local range = nil if args.count ~= -1 then local end_line = vim.api.nvim_buf_get_lines(0, args.line2 - 1, args.line2, true)[1] @@ -123,6 +136,7 @@ return { { "L3MON4D3/LuaSnip", lazy = true, + build = "make install_jsregexp", dependencies = { { "rafamadriz/friendly-snippets", @@ -151,4 +165,9 @@ return { require("luasnip").setup(opts) end, }, + -- { + -- "m4xshen/hardtime.nvim", + -- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" }, + -- opts = {} + -- }, }