Skip to content

casonadams/simple-diagnostics.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

simple-diagnostics

simple-diagnostics removes the noise of every line error, and only show the current line error.

Options include showing error in MsgArea, and or as virtual text

Requires neovim/nvim-lspconfig

Disable vitural_text

  • neovim
vim.diagnostic.config({
  virtual_text = false
})
  • LunarVim
lvim.lsp.diagnostics.virtual_text = false

install with packer

use({"casonadams/simple-diagnostics.nvim",
  config = function()
    require("simple-diagnostics").setup({
      virtual_text = true,
      message_area = true,
      signs = true,
    })
  end,
})

define sign symbols

local signs = { Error = "", Warn = "", Hint = "", Info = "" }
for type, icon in pairs(signs) do
  local hl = "DiagnosticSign" .. type
  vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = nil })
end

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages