nvim: Add todo-comments

This commit is contained in:
2024-03-25 13:39:52 +01:00
parent 18d0304855
commit fa5410c51e
4 changed files with 13 additions and 39 deletions

View File

@ -31,6 +31,8 @@ require("auto-save").setup({
enabled = false
})
require("todo-comments").setup()
rust_tools.setup({
server = {
@ -46,40 +48,6 @@ rust_tools.setup({
},
})
-- -- LSP Diagnostics Options Setup
-- local sign = function(opts)
-- vim.fn.sign_define(opts.name, {
-- texthl = opts.name,
-- text = opts.text,
-- numhl = ''
-- })
-- end
--
-- sign({name = 'DiagnosticSignError', text = ''})
-- sign({name = 'DiagnosticSignWarn', text = ''})
-- sign({name = 'DiagnosticSignHint', text = ''})
-- sign({name = 'DiagnosticSignInfo', text = ''})
--
-- vim.diagnostic.config({
-- virtual_text = false,
-- signs = true,
-- update_in_insert = true,
-- underline = true,
-- severity_sort = false,
-- float = {
-- border = 'rounded',
-- source = 'always',
-- header = '',
-- prefix = '',
-- },
-- })
--
-- vim.cmd([[
-- set signcolumn=yes
-- autocmd CursorHold * lua vim.diagnostic.open_float(nil, { focusable = false })
-- ]])
-- Format file on save
vim.cmd [[autocmd BufWritePre * lua vim.lsp.buf.format()]]