something

This commit is contained in:
Kyle Andelin 2023-03-15 09:39:01 -07:00
parent 4a37a0a9b1
commit b079304a9c
1 changed files with 45 additions and 5 deletions

View File

@ -120,18 +120,58 @@ require('lazy').setup({
end, end,
}, },
-- { -- Set lualine as statusline
-- 'nvim-lualine/lualine.nvim',
-- -- See `:help lualine.txt`
-- opts = {
-- options = {
-- icons_enabled = false,
-- theme = 'onedark',
-- component_separators = '|',
-- section_separators = '',
-- },
-- },
-- },
-- https://github.com/nvim-lualine/lualine.nvim
-- https://github.com/bashbunni/dotfiles/blob/90b3f14be7691e06ad45b6e4f81bfe7bdefd7234/.config/nvim/lua/me/lualine.lua
{ -- Set lualine as statusline { -- Set lualine as statusline
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
-- See `:help lualine.txt` -- See `:help lualine.txt`
opts = { opts = {
options = { options = {
icons_enabled = false, icons_enabled = true,
theme = 'onedark', theme = 'auto',
component_separators = '|', -- component_separators = '|',
section_separators = '', -- section_separators = '',
},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch', 'diff'},
lualine_c = {'buffers'},
lualine_x = {'tabs'},
lualine_y = {'progress'},
lualine_z = {
{ 'diagnostics',
sources = {'nvim_diagnostic', 'nvim_lsp'},
sections = {'error', 'warn', 'info', 'hint'},
diagnostics_color = {
-- Same values as the general color option can be used here.
error = 'DiagnosticError', -- Changes diagnostics' error color.
warn = 'DiagnosticWarn', -- Changes diagnostics' warn color.
info = 'DiagnosticInfo', -- Changes diagnostics' info color.
hint = 'DiagnosticHint', -- Changes diagnostics' hint color.
},
symbols = {error = 'E', warn = 'W', info = 'I', hint = 'H'},
colored = true, -- Displays diagnostics status in color if set to true.
update_in_insert = false, -- Update diagnostics in insert mode.
always_visible = false, -- Show diagnostics even if there are none.
}, },
}, },
}, },
},
},
'kyazdani42/nvim-web-devicons',
{ -- Add indentation guides even on blank lines { -- Add indentation guides even on blank lines
'lukas-reineke/indent-blankline.nvim', 'lukas-reineke/indent-blankline.nvim',
@ -410,7 +450,7 @@ local servers = {
-- clangd = {}, -- clangd = {},
-- gopls = {}, -- gopls = {},
-- pyright = {}, -- pyright = {},
-- rust_analyzer = {}, rust_analyzer = {},
-- tsserver = {}, -- tsserver = {},
lua_ls = { lua_ls = {