feat(config): various config updates

Packaged updates to configuration.
This commit is contained in:
2025-08-23 11:52:26 -04:00
parent 00b23548c3
commit 4545e18a68
20 changed files with 564 additions and 107 deletions
+33
View File
@@ -0,0 +1,33 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ LSP Operations │
-- ╰─────────────────────────────────────────────────────────╯
local M = {}
--- Function to get attached LSP server names
---@return string|nil list A list of attached lsp servers
function M.get_attached_lsp_clients()
local clients =
vim.lsp.get_clients({ bufnr = vim.api.nvim_get_current_buf() })
if #clients == 0 then
return nil
else
local names = {}
for _, client in ipairs(clients) do
table.insert(names, client.name)
end
return 'LSP~ ' .. table.concat(names, ', ')
end
end
--- Function to print the list of attached LSP servers
function M.print_attached_lsp_clients()
local clients = M.get_attached_lsp_clients()
if clients == nil then
print('No LSP clients attached')
else
print(clients)
end
end
return M