Compare commits

...

3 Commits

Author SHA1 Message Date
5cff3c434e
fix(nvim): do not notify lsp client attach is name empty
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
2024-10-21 15:48:21 -05:00
7c0415b911
fix(nvim): make statusline respond to Lsp Events 2024-10-21 15:48:14 -05:00
8988caf18f
feat(nvim): add direnv.nvim 2024-10-21 15:48:13 -05:00
3 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,13 @@
return {
{
"actionshrimp/direnv.nvim",
lazy = false,
config = function()
local direnv = require("direnv-nvim")
-- TODO: Make this properly restart LSP clients as necessary
direnv.setup({
async = true,
})
end,
},
}

View File

@ -458,6 +458,7 @@ return {
},
{
condition = conditions.lsp_attached,
update = { "LspAttach", "LspDetach" },
{
provider = function()
local names = {}

View File

@ -161,6 +161,7 @@ return {
{
"neovim/nvim-lspconfig",
dependencies = {
"actionshrimp/direnv.nvim", -- This ensures that direnv is loaded first
"williamboman/mason.nvim",
"Decodetalkers/csharpls-extended-lsp.nvim",
{
@ -302,7 +303,10 @@ return {
end
local messages = {}
for _, cur_client in ipairs(cur_clients) do
table.insert(messages, "- `" .. cur_client.name .. "`")
local client_name = vim.trim(cur_client.name)
if client_name ~= "" then
table.insert(messages, "- `" .. cur_client.name .. "`")
end
end
vim.notify(table.concat(messages, "\n"), vim.log.levels.INFO, {