nvim: Add todo-comments
This commit is contained in:
@ -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()]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user