mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 20:10:03 +02:00
nvim/lua/user/plugins/editor.lua: adding todo-comments plugin
This commit is contained in:
parent
0ee8ee6d58
commit
dfac036414
1 changed files with 20 additions and 1 deletions
|
|
@ -14,6 +14,19 @@ return {
|
||||||
virtual_symbol_suffix = '',
|
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",
|
"pnx/mini.bufremove",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
@ -104,7 +117,7 @@ return {
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
|
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
|
||||||
user.formatter = function (args)
|
user.formatter = function(args)
|
||||||
local range = nil
|
local range = nil
|
||||||
if args.count ~= -1 then
|
if args.count ~= -1 then
|
||||||
local end_line = vim.api.nvim_buf_get_lines(0, args.line2 - 1, args.line2, true)[1]
|
local end_line = vim.api.nvim_buf_get_lines(0, args.line2 - 1, args.line2, true)[1]
|
||||||
|
|
@ -123,6 +136,7 @@ return {
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
|
build = "make install_jsregexp",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
{
|
||||||
"rafamadriz/friendly-snippets",
|
"rafamadriz/friendly-snippets",
|
||||||
|
|
@ -151,4 +165,9 @@ return {
|
||||||
require("luasnip").setup(opts)
|
require("luasnip").setup(opts)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
-- {
|
||||||
|
-- "m4xshen/hardtime.nvim",
|
||||||
|
-- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
|
||||||
|
-- opts = {}
|
||||||
|
-- },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue