Configure LSPs via Languages and Profiles

This commit is contained in:
peturparkur 2024-08-29 12:21:33 +02:00
parent 990efd1444
commit 24ec529102
3 changed files with 148 additions and 140 deletions

27
lua/utils/profile.lua Normal file
View file

@ -0,0 +1,27 @@
local PROFILES = {
['HOME'] = {
'python',
'nix',
'go',
'rust',
'markdown',
'bash',
'docker',
'lua',
},
['DEFAULT'] = {
'python',
'markdown',
'bash',
'docker',
'lua',
},
}
local Profile = {}
Profile.Languages = function()
local profile = PROFILES[os.getenv 'NVIM_PROFILE' or 'DEFAULT']
return profile
end
return Profile