huge updates

This commit is contained in:
sankalp committed 2024-08-16 22:39:30 +05:45
1 parent a2b0f73e33
commit b5e4ef3bff
54 files changed
+931 -812

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@ return {
dependencies = {
'nvim-tree/nvim-web-devicons',
},
event = { 'BufReadPost', 'BufAdd', 'BufNewFile' },
event = 'UIEnter',
config = function()
-- Eviline config for lualine
-- Author: shadmansaleh
@@ -50,6 +50,7 @@ return {
'NeoTree',
'NvimTree',
'Outline',
'alpha',
},
theme = {
-- We are going to use lualine_c an lualine_x as left and
@@ -161,14 +162,13 @@ return {
-- Lsp server name .
function()
local msg = 'No Active Lsp'
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
local clients = vim.lsp.get_clients()
if next(clients) == nil then
return msg
end
for _, client in ipairs(clients) do
local filetypes = client.config.filetypes
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
if filetypes and vim.fn.index(filetypes) ~= -1 then
return client.name
end
end