add copilot lualine

This commit is contained in:
2024-09-17 01:35:02 -07:00
parent 324074bb1c
commit 29bd43a36a
4 changed files with 199 additions and 176 deletions

View File

@@ -0,0 +1,40 @@
local lualine = require('lualine')
lualine.setup({
options = {
icons_enabled = true,
theme = cozynight,
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = {},
always_divide_middle = true
},
sections = {
lualine_a = { 'mode' },
lualine_b = {
'branch', 'diff', {
'diagnostics',
sources = { "nvim_diagnostic" },
symbols = {
error = '',
warn = '',
info = '',
hint = ''
}
}
},
lualine_c = { 'filename' },
lualine_x = { 'copilot', 'encoding', 'fileformat', 'filetype' }, -- I added copilot here
lualine_y = { 'progress' },
lualine_z = { 'location' }
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_y = {},
lualine_z = {}
},
tabline = {},
extensions = {}
})

View File

@@ -215,7 +215,7 @@ cmp.setup.cmdline(':', {
local servers = {
'bashls', 'pyright', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls',
'html', 'cssls', 'lua_ls', 'eslint', 'tsserver', 'angularls', 'ansiblels'
'html', 'cssls', 'lua_ls', 'eslint', 'ts_ls', 'angularls', 'ansiblels'
}
for _, lsp in ipairs(servers) do