1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00

nvim/lua/user/plugins/editor.lua: adding todo-comments plugin

This commit is contained in:
Henrik Hautakoski 2024-11-22 10:13:34 +01:00
parent 0ee8ee6d58
commit dfac036414

View file

@ -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 = {}
-- },
}