mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +02:00
feat(lualine): better lualine with git status, diagnostics and navic lsp information (#15)
This commit is contained in:
parent
6bfba2d669
commit
d74759de76
4 changed files with 40 additions and 7 deletions
|
@ -9,6 +9,7 @@ return {
|
|||
"mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"SmiteshP/nvim-navic",
|
||||
},
|
||||
---@type lspconfig.options
|
||||
servers = nil,
|
||||
|
@ -17,6 +18,9 @@ return {
|
|||
require("lazyvim.util").on_attach(function(client, buffer)
|
||||
require("lazyvim.plugins.lsp.format").on_attach(client, buffer)
|
||||
require("lazyvim.plugins.lsp.keymaps").on_attach(client, buffer)
|
||||
if client.server_capabilities.documentSymbolProvider then
|
||||
require("nvim-navic").attach(client, buffer)
|
||||
end
|
||||
end)
|
||||
|
||||
-- diagnostics
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue