mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
add: auto switch to conform if use default config language
This commit is contained in:
parent
22202bc11b
commit
fbd69d94ec
7 changed files with 295 additions and 258 deletions
23
lua/user/utils/cfgstatus.lua
Normal file
23
lua/user/utils/cfgstatus.lua
Normal file
|
@ -0,0 +1,23 @@
|
|||
local M={}
|
||||
|
||||
M.cheack=function ()
|
||||
local sts= false
|
||||
if pcode.active_javascript_config.active or false then
|
||||
sts=true
|
||||
elseif pcode.active_rust_config or false then
|
||||
sts=true
|
||||
elseif pcode.active_php_config or false then
|
||||
sts=true
|
||||
elseif pcode.active_golang_config or false then
|
||||
sts=true
|
||||
elseif pcode.active_python_config or false then
|
||||
sts=true
|
||||
elseif pcode.active_cpp_config or false then
|
||||
sts=true
|
||||
elseif pcode.active_java_config.active or false then
|
||||
sts=true
|
||||
end
|
||||
return sts
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue