Configure LSPs via Languages and Profiles
This commit is contained in:
parent
990efd1444
commit
24ec529102
3 changed files with 148 additions and 140 deletions
27
lua/utils/profile.lua
Normal file
27
lua/utils/profile.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue