Adding a WSL specific configuration file which enables only when the environment variable WSL_DISTRO_NAME is set

This commit is contained in:
Finch 2024-03-20 11:12:45 -05:00
parent 44b9ea885f
commit 80fef78ae9
2 changed files with 6 additions and 0 deletions

View File

@ -47,4 +47,5 @@ require('keymappings')
require('settings')
require('autocmds')
require('lsp')
require('wsl')
require('plugins')

5
nvim/lua/wsl.lua Normal file
View File

@ -0,0 +1,5 @@
local wsl = os.getenv('WSL_DISTRO_NAME')
if wsl then
-- Do WSL specific things
end