Compare commits
3 Commits
6fad02b9ed
...
5cff3c434e
Author | SHA1 | Date | |
---|---|---|---|
5cff3c434e | |||
7c0415b911 | |||
8988caf18f |
13
users/price/dots/.config/nvim/lua/plugins/configs/direnv.lua
Normal file
13
users/price/dots/.config/nvim/lua/plugins/configs/direnv.lua
Normal 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,
|
||||||
|
},
|
||||||
|
}
|
@ -458,6 +458,7 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
condition = conditions.lsp_attached,
|
condition = conditions.lsp_attached,
|
||||||
|
update = { "LspAttach", "LspDetach" },
|
||||||
{
|
{
|
||||||
provider = function()
|
provider = function()
|
||||||
local names = {}
|
local names = {}
|
||||||
|
@ -161,6 +161,7 @@ return {
|
|||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
"actionshrimp/direnv.nvim", -- This ensures that direnv is loaded first
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
"Decodetalkers/csharpls-extended-lsp.nvim",
|
"Decodetalkers/csharpls-extended-lsp.nvim",
|
||||||
{
|
{
|
||||||
@ -302,7 +303,10 @@ return {
|
|||||||
end
|
end
|
||||||
local messages = {}
|
local messages = {}
|
||||||
for _, cur_client in ipairs(cur_clients) do
|
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
|
end
|
||||||
|
|
||||||
vim.notify(table.concat(messages, "\n"), vim.log.levels.INFO, {
|
vim.notify(table.concat(messages, "\n"), vim.log.levels.INFO, {
|
||||||
|
Loading…
Reference in New Issue
Block a user